From: Alan Knowles Date: Fri, 2 May 2014 10:51:25 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=53aec29c7f395510a17edb0d637f826612dde13b Spawn.vala --- 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;