[pulseaudio-commits] r2471 - /trunk/src/pulsecore/random.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed May 21 15:42:01 PDT 2008


Author: lennart
Date: Thu May 22 00:42:01 2008
New Revision: 2471

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2471&root=pulseaudio&view=rev
Log:
add O_NOCTTY

Modified:
    trunk/src/pulsecore/random.c

Modified: trunk/src/pulsecore/random.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/random.c?rev=2471&root=pulseaudio&r1=2470&r2=2471&view=diff
==============================================================================
--- trunk/src/pulsecore/random.c (original)
+++ trunk/src/pulsecore/random.c Thu May 22 00:42:01 2008
@@ -64,7 +64,11 @@
     while (*device) {
         ret = 0;
 
-        if ((fd = open(*device, O_RDONLY)) >= 0) {
+        if ((fd = open(*device, O_RDONLY
+#ifdef O_NOCTTY
+                       | O_NOCTTY
+#endif
+             )) >= 0) {
 
             if ((r = pa_loop_read(fd, ret_data, length, NULL)) < 0 || (size_t) r != length)
                 ret = -1;




More information about the pulseaudio-commits mailing list