Spawn.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 14 Apr 2010 09:55:47 +0000 (17:55 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 14 Apr 2010 09:55:47 +0000 (17:55 +0800)
Spawn.js

index b7e261c..36103b8 100644 (file)
--- a/Spawn.js
+++ b/Spawn.js
@@ -126,7 +126,9 @@ Spawn.prototype = {
             
         this.pid = ret.child_pid;
         
-        
+        if (this.debug) {
+            print("PID: " + pid);
+        }
         function tidyup()
         {
             if (_this.pid) {
@@ -211,6 +213,7 @@ Spawn.prototype = {
         // start mainloop if not async..
         if (!this.async) {
             if (this.pid !== false) {
+                
                 ctx = GLib.main_loop_new (null, false);
                 GLib.main_loop_run(ctx, false); // wait fore exit?
             } else {