projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
008b1e2
)
Spawn.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 2 May 2014 10:30:49 +0000
(18:30 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 2 May 2014 10:30:49 +0000
(18:30 +0800)
Spawn.vala
patch
|
blob
|
history
diff --git
a/Spawn.vala
b/Spawn.vala
index
0def9df
..
070280d
100644
(file)
--- a/
Spawn.vala
+++ b/
Spawn.vala
@@
-223,27
+223,28
@@
public class Spawn : Object
//print(JSON.stringify(gret));
if (this.cfg.debug) {
//print(JSON.stringify(gret));
if (this.cfg.debug) {
+
stdout.print("PID: %d" ,this.pid);
}
ChildWatch.add (this.pid, (w_pid, result) => {
stdout.print("PID: %d" ,this.pid);
}
ChildWatch.add (this.pid, (w_pid, result) => {
- this.result = result;
+
this.result = result;
if (_this.debug) {
if (_this.debug) {
- print("child_watch_add : result:
" +
result);
+ print("child_watch_add : result:
%d ",
result);
}
}
-
+
this.read(this.out_ch);
this.read(this.err_ch);
this.read(this.out_ch);
this.read(this.err_ch);
-
+
Process.close_pid(this.pid);
this.pid = -1;
if (this.ctx) {
this.ctx.quit();
}
this.tidyup();
Process.close_pid(this.pid);
this.pid = -1;
if (this.ctx) {
this.ctx.quit();
}
this.tidyup();
-
//print("DONE TIDYUP");
+ //print("DONE TIDYUP");
if (this.cfg.finish) {
this.cfg.finish(this.result);
}
if (this.cfg.finish) {
this.cfg.finish(this.result);
}