src/Spawn.vala
authorAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 02:41:26 +0000 (10:41 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 02:41:26 +0000 (10:41 +0800)
src/Spawn.vala

index b5e68aa..4f8b0d9 100644 (file)
@@ -60,6 +60,7 @@ public class Spawn : Object
        public string[] env;
        public bool debug = false;
        public bool is_async = true;
+       public bool throw_exceptions = false;
 
     public Spawn(string cwd, string[] args) throws Error
     {
@@ -255,14 +256,14 @@ public class Spawn : Object
         // start mainloop if not async..
         
         if (this.pid > -1) {
-             print("starting main loop");
+            GLib.debug("starting main loop");
              //if (this.cfg.debug) {
              //  
              // }
                this.ctx = new MainLoop ();
             this.ctx.run(); // wait fore exit?
             
-            print("main_loop done!");
+            GLib.debug("main_loop done!");
         } else {
             this.tidyup(); // tidyup get's called in main loop. 
         }