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:
9e3b111
)
src/Spawn.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 15 May 2015 02:48:16 +0000
(10:48 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 15 May 2015 02:48:16 +0000
(10:48 +0800)
src/Spawn.vala.c
src/Spawn.vala
patch
|
blob
|
history
diff --git
a/src/Spawn.vala
b/src/Spawn.vala
index
8f7ea18
..
5908893
100644
(file)
--- a/
src/Spawn.vala
+++ b/
src/Spawn.vala
@@
-409,6
+409,12
@@
public class Spawn : Object
int main (string[] args) {
+ GLib.Log.set_handler(null,
+ GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING,
+ (dom, lvl, msg) => {
+ print("%s: %s\n", dom, msg);
+ });
+
var ctx = new GLib.MainLoop ();
var a = new Spawn("", { "ls" , "-l"});
a.finish.connect((res, str, stderr) => {