diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-11-20 20:17:14 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-11-20 20:17:14 +0800 |
commit | 085701290395d57e3ac0b1844756b9faac06e3c7 (patch) | |
tree | 099689d55d5eec00bacbcc7169035a3950c0f99c /audio/pulseaudio/files/patch-src_modules_module-cli.c | |
parent | 06c08695ca06cba06b859e0ff1e5fbf1c8ba3370 (diff) | |
download | marcuscom-ports-085701290395d57e3ac0b1844756b9faac06e3c7.tar.gz marcuscom-ports-085701290395d57e3ac0b1844756b9faac06e3c7.tar.zst marcuscom-ports-085701290395d57e3ac0b1844756b9faac06e3c7.zip |
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
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 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 { |