From f686c209896e7e51d994af6b5c0243179ac76939 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 29 Aug 2016 16:35:53 +0800 Subject: [PATCH] Spawn.vala --- Spawn.vala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.2