Spawn.vala
[gitlive] / Spawn.vala
index ab13800..0ee0486 100644 (file)
@@ -294,14 +294,13 @@ public class Spawn : Object
         this.out_src = (int) this.out_ch.add_watch (
             IOCondition.OUT | IOCondition.IN  | IOCondition.PRI |  IOCondition.HUP |  IOCondition.ERR  ,
             (channel, condition) => {
-                
-               return this.out_ch != null ? this.read(this.out_ch) : false;
+                return this.out_ch != null ? this.read(this.out_ch) : true;
             }
         );
         this.err_src = (int) this.err_ch.add_watch (
                 IOCondition.OUT | IOCondition.IN  | IOCondition.PRI |  IOCondition.HUP |  IOCondition.ERR  ,
             (channel, condition) => {
-               return this.read(this.err_ch);
+               return this.err_ch != null ? this.read(this.err_ch)  : true;
             }
         );