From cf437cc42e090039fe8270f19d706969fce4b845 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 29 Aug 2016 17:34:20 +0800 Subject: [PATCH] Spawn.vala --- Spawn.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Spawn.vala b/Spawn.vala index 2c13854b..20eb0ca1 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -294,13 +294,15 @@ 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) : true; + return this.read(channel); + //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.err_ch != null ? this.read(this.err_ch) : true; + return this.read(channel); + //return this.err_ch != null ? this.read(this.err_ch) : true; } ); -- 2.39.2