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

index 755dc9d..cfd5a6b 100644 (file)
--- a/Spawn.js
+++ b/Spawn.js
@@ -150,7 +150,9 @@ Spawn.prototype = {
         
         GLib.child_watch_add(GLib.PRIORITY_DEFAULT, this.pid, function(pid, result) {
             _this.result = result;
-            
+            if (this.debug) {
+                print("result: " + result);
+            }
             GLib.spawn_close_pid(_this.pid);
             _this.pid = false;
             if (ctx) {