diff options
| author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2009-09-19 18:24:02 +0000 |
|---|---|---|
| committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2009-09-19 18:24:02 +0000 |
| commit | eb9dac94c2e8e0cad9f01a592d59b31a8f972e5d (patch) | |
| tree | e8cb940e197b9f089c6028a15fded799e7d6b9aa /audio/pulseaudio/files/patch-src_modules_module-cli.c | |
| parent | 05a10795ce8da3482f6b5a444d985b6009f5a090 (diff) | |
Notes
Diffstat (limited to 'audio/pulseaudio/files/patch-src_modules_module-cli.c')
| -rw-r--r-- | audio/pulseaudio/files/patch-src_modules_module-cli.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/pulseaudio/files/patch-src_modules_module-cli.c b/audio/pulseaudio/files/patch-src_modules_module-cli.c new file mode 100644 index 000000000000..4b0fedcc8878 --- /dev/null +++ b/audio/pulseaudio/files/patch-src_modules_module-cli.c @@ -0,0 +1,15 @@ +--- src/modules/module-cli.c.orig 2009-09-19 13:57:53.000000000 -0400 ++++ src/modules/module-cli.c 2009-09-19 14:04:25.000000000 -0400 +@@ -105,7 +105,12 @@ 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. */ + ++#ifdef O_CLOEXEC + if ((fd = open("/dev/tty", O_RDWR|O_CLOEXEC|O_NONBLOCK)) >= 0) { ++#else ++ if ((fd = open("/dev/tty", O_RDWR|O_NONBLOCK)) >= 0 && ++ fcntl(fd, F_SETFD, FD_CLOEXEC) != -1) { ++#endif + io = pa_iochannel_new(m->core->mainloop, fd, fd); + pa_log_debug("Managed to open /dev/tty."); + } else { |
