The branch, patches has been updated
       via  c6bb9dd1df10c49b11ac65db138fc3f34757bb41 (commit)
      from  a4e4ab5730eee126cb5ad637972c7a3ba261245e (commit)


- Shortlog ------------------------------------------------------------
c6bb9dd Work around some platforms not having O_CLOEXEC

Summary of changes:
 src/modules/module-cli.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
-----------------------------------------------------------------------
Details of changes:

commit c6bb9dd1df10c49b11ac65db138fc3f34757bb41
Author: Clint Adams <[email protected]>
Date:   Sun Oct 25 12:35:14 2009 +0000

    Work around some platforms not having O_CLOEXEC

diff --git a/src/modules/module-cli.c b/src/modules/module-cli.c
index 6bd0f4f..b1adb52 100644
--- a/src/modules/module-cli.c
+++ b/src/modules/module-cli.c
@@ -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) {
+        pa_make_fd_cloexec(fd);
+#endif
         io = pa_iochannel_new(m->core->mainloop, fd, fd);
         pa_log_debug("Managed to open /dev/tty.");
     } else {

-- 
pulseaudio packaging

_______________________________________________
Pkg-pulseaudio-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-pulseaudio-devel

Reply via email to