projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5878f0f
)
Spawn.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 14 Apr 2010 09:55:47 +0000
(17:55 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 14 Apr 2010 09:55:47 +0000
(17:55 +0800)
Spawn.js
patch
|
blob
|
history
diff --git
a/Spawn.js
b/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 {