From: Alan Knowles Date: Tue, 26 Sep 2017 09:22:10 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=78621eaf06068ed3b2d07e264e4fc570949cbfb0 Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index 59e1a643..771a5df0 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -324,7 +324,7 @@ public class Spawn : Object //but... let's close input now.. this.in_ch.shutdown(true); this.in_ch = null; - + } catch (Error e) { this.tidyup(); @@ -348,7 +348,7 @@ public class Spawn : Object //if (this.cfg.debug) { // // } - this.ctx = new MainLoop (); + this.ctx = MainLoop (); this.ctx.run(); // wait fore exit? //print("main_loop done!"); @@ -363,7 +363,7 @@ public class Spawn : Object errstr += this.output.length > 0 ? "\n" : ""; errstr += this.stderr; //print("Throwing execute error:%s\n", errstr); - throw new SpawnError.EXECUTE_ERROR(errstr); + throw SpawnError.EXECUTE_ERROR(errstr); //this.toString = function() { return this.stderr; }; ///throw new Exception this; // we throw self... }