Spawn.vala
authorAlan Knowles <alan@roojs.com>
Tue, 26 Sep 2017 09:22:10 +0000 (17:22 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Sep 2017 09:22:10 +0000 (17:22 +0800)
Spawn.vala

index 59e1a64..771a5df 100644 (file)
@@ -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...
         }