JsRender.JsRender file;
public int line_offset = 0;
+ public Gee.ArrayList<Spawn> children;
public ValaSource( )
{
base();
this.compiler = null;
+ this.children = new Gee.ArrayList<Spawn>();
+
}
public void dumpCode(string str)
{
}
+
+
+
public void spawnExecute(JsRender.JsRender file)
{
// race condition..
this.compiler.output_line.connect(compile_output_line);
this.compiler.complete.connect(runResult);
this.compiler.run();
-
+ this.children.add(this.compiler); //keep a reference...
} catch (GLib.Error e) {
GLib.debug(e.message);
{
this.compiler = null;
print("OUT: %s\n\n----\nERR:%s", output, stderr);
- var exec = new Spawn("/tmp", { "/tmp/testrun" });
+ var exec = new Spawn("/tmp", { "/tmp/testrun" });
exec.run();
-
+ this.children.add(exec);
}
}