[pulseaudio-commits] r1992 - /trunk/src/modules/gconf/module-gconf.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Oct 29 17:17:22 PDT 2007


Author: lennart
Date: Tue Oct 30 01:17:21 2007
New Revision: 1992

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1992&root=pulseaudio&view=rev
Log:
deal properly with signals interrupting us when we wait for data from gconf helper

Modified:
    trunk/src/modules/gconf/module-gconf.c

Modified: trunk/src/modules/gconf/module-gconf.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/gconf/module-gconf.c?rev=1992&root=pulseaudio&r1=1991&r2=1992&view=diff
==============================================================================
--- trunk/src/modules/gconf/module-gconf.c (original)
+++ trunk/src/modules/gconf/module-gconf.c Tue Oct 30 01:17:21 2007
@@ -225,8 +225,11 @@
     int ret = 0;
 
     do {
-        if ((opcode = read_byte(u)) < 0)
+        if ((opcode = read_byte(u)) < 0){
+            if (errno == EINTR || errno == EAGAIN)
+                break;
             goto fail;
+        }
 
         switch (opcode) {
             case '!':
@@ -509,4 +512,3 @@
 
     pa_xfree(u);
 }
-




More information about the pulseaudio-commits mailing list