From: Alan Knowles Date: Mon, 29 Aug 2016 08:35:53 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=f686c209896e7e51d994af6b5c0243179ac76939 Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index 08032c19..a25c2da2 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -426,7 +426,9 @@ public class Spawn : Object { string prop = (ch == this.out_ch) ? "output" : "stderr"; // print("prop: " + prop); - + if (this.pid < 0) { + return; // spawn complete + closed... can't read any more. + } //print(JSON.stringify(ch, null,4)); while (true) {