projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
229c572
)
src/Spawn.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 15 May 2015 02:45:17 +0000
(10:45 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 15 May 2015 02:45:17 +0000
(10:45 +0800)
src/Spawn.vala
patch
|
blob
|
history
diff --git
a/src/Spawn.vala
b/src/Spawn.vala
index
36cfbf9
..
00350ad
100644
(file)
--- a/
src/Spawn.vala
+++ b/
src/Spawn.vala
@@
-409,11
+409,15
@@
public class Spawn : Object
int main (string[] args) {
-
+ var ctx = new GLib.MainLoop ();
var a = new Spawn("", { "ls" , "-l"});
a.finish.connect((res, str, stderr) => {
print(str);
+ ctx.quit();
});
+
+ ctx.run(); // wait for exit?
+
return 0;
}
*/