From 53aec29c7f395510a17edb0d637f826612dde13b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 2 May 2014 18:51:25 +0800 Subject: [PATCH] Spawn.vala --- Spawn.vala | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Spawn.vala b/Spawn.vala index fd36dd98..92f92591 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -346,9 +346,13 @@ public class Spawn : Object Process.close_pid(this.pid); // hopefully kills it.. this.pid = -1; } - if (this.in_ch != null) this.in_ch.shutdown(true); - if (this.out_ch != null) this.out_ch.shutdown(true); - if (this.err_ch != null) this.err_ch.shutdown(true); + try { + if (this.in_ch != null) this.in_ch.shutdown(true); + if (this.out_ch != null) this.out_ch.shutdown(true); + if (this.err_ch != null) this.err_ch.shutdown(true); + } catch (Error e) { + // error shutting donw. + } // blank out channels this.in_ch = null; this.err_ch = null; -- 2.39.2