From 085701290395d57e3ac0b1844756b9faac06e3c7 Mon Sep 17 00:00:00 2001
From: kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>
Date: Fri, 20 Nov 2009 12:17:14 +0000
Subject: Update to 0.9.20.

Tweak shm_open to set 0644 instead of 0444, shm_unlink() needs write
permissions on the shared memory object. [1]

Submitted by:	Eric L. Chen <lihong@ieee.org> [1]


git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13226 df743ca5-7f9a-e211-a948-0013205c9059
---
 audio/pulseaudio/files/patch-src_modules_module-cli.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 audio/pulseaudio/files/patch-src_modules_module-cli.c

(limited to 'audio/pulseaudio/files/patch-src_modules_module-cli.c')

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 000000000..4b0fedcc8
--- /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 {
-- 
cgit