diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-10-30 04:54:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-10-30 04:54:19 +0100 |
commit | 168be3830ae291dd819abebec813f76151487bb3 (patch) | |
tree | 783df8db52cac54b74d8e304d98e7ab5e4683bd8 /src/modules/module-cli.c | |
parent | 88b72958bebd1770e45a4af2dc9fec75aaf1f2de (diff) |
use pa_fopen_cloexec() where applicable
Diffstat (limited to 'src/modules/module-cli.c')
-rw-r--r-- | src/modules/module-cli.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-cli.c b/src/modules/module-cli.c index 6bd0f4fc..c5ff4564 100644 --- a/src/modules/module-cli.c +++ b/src/modules/module-cli.c @@ -105,7 +105,7 @@ int pa__init(pa_module*m) { * of log messages, particularly because if stdout and stderr are * dup'ed they share the same O_NDELAY, too. */ - if ((fd = open("/dev/tty", O_RDWR|O_CLOEXEC|O_NONBLOCK)) >= 0) { + if ((fd = pa_open_cloexec("/dev/tty", O_RDWR|O_NONBLOCK, 0)) >= 0) { io = pa_iochannel_new(m->core->mainloop, fd, fd); pa_log_debug("Managed to open /dev/tty."); } else { |