projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3691fb9
)
Spawn.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 2 May 2014 10:51:25 +0000
(18:51 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 2 May 2014 10:51:25 +0000
(18:51 +0800)
Spawn.vala
patch
|
blob
|
history
diff --git
a/Spawn.vala
b/Spawn.vala
index
fd36dd9
..
92f9259
100644
(file)
--- 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;
}
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;
// blank out channels
this.in_ch = null;
this.err_ch = null;