resources/RooUsage.txt
[app.Builder.js] / src / Spawn.vala
index 57e9daa..d3b9428 100644 (file)
@@ -162,6 +162,12 @@ public class Spawn : Object
                                SpawnFlags.SEARCH_PATH | SpawnFlags.DO_NOT_REAP_CHILD,
                                null,
                                out this.pid);
+                               ChildWatch.add (this.pid, (pid, status) => {
+                                       // Triggered when the child indicated by child_pid exits
+                                       Process.close_pid (pid);
+                                        
+                               });
+                               
                                return;
 
                }
@@ -177,9 +183,7 @@ public class Spawn : Object
                                out standard_error);
 
                // stdout:
-               if (this.detach) { 
-                       return;
-               }
+                
                        
                //print(JSON.stringify(gret));