From a643601bc4d6c3ef85b08b07ac23db708a3a4e5f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 2 May 2014 18:30:49 +0800 Subject: [PATCH] Spawn.vala --- Spawn.vala | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Spawn.vala b/Spawn.vala index 0def9df3..070280d0 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -223,27 +223,28 @@ public class Spawn : Object //print(JSON.stringify(gret)); if (this.cfg.debug) { + stdout.print("PID: %d" ,this.pid); } ChildWatch.add (this.pid, (w_pid, result) => { - this.result = result; + this.result = result; if (_this.debug) { - print("child_watch_add : result: " + result); + print("child_watch_add : result:%d ", result); } - + this.read(this.out_ch); this.read(this.err_ch); - + Process.close_pid(this.pid); this.pid = -1; if (this.ctx) { this.ctx.quit(); } this.tidyup(); - //print("DONE TIDYUP"); + //print("DONE TIDYUP"); if (this.cfg.finish) { this.cfg.finish(this.result); } -- 2.39.2