[Pkg-pulseaudio-devel] Bug#550826: (no subject)
Clint Adams
schizo at debian.org
Sat Oct 17 14:33:28 UTC 2009
forwarded 550826 http://pulseaudio.org/ticket/679
quit
Maybe this?
diff -ur pulseaudio-0.9.19.orig/src/modules/module-cli.c pulseaudio-0.9.19/src/modules/module-cli.c
--- pulseaudio-0.9.19.orig/src/modules/module-cli.c 2009-10-03 10:07:01.000000000 -0700
+++ pulseaudio-0.9.19/src/modules/module-cli.c 2009-10-17 07:28:47.467939290 -0700
@@ -105,7 +105,12 @@
* 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) {
+ pa_make_fd_cloexec(fd);
+#endif
io = pa_iochannel_new(m->core->mainloop, fd, fd);
pa_log_debug("Managed to open /dev/tty.");
} else {
More information about the Pkg-pulseaudio-devel
mailing list