Spawn.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:41:56 +0000 (18:41 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:41:56 +0000 (18:41 +0800)
Spawn.vala

index 26d2d3d..73360a9 100644 (file)
@@ -420,6 +420,11 @@ public class Spawn : Object
                     //if (this.listeners[prop]) {
                     //    this.listeners[prop].call(this, x.str_return);
                     //}
+                    if (ch == this.out_ch) {
+                        this.output += buffer;
+                    } else {
+                        this.stderr += buffer;
+                    }
                     _this[prop] += x.str_return;
                     if (_this.debug) {
                         print(prop + ':' + x.str_return.replace(/\n/, ''));