projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5a5f01f
)
Spawn.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 29 Aug 2016 08:44:01 +0000
(16:44 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 29 Aug 2016 08:44:01 +0000
(16:44 +0800)
Spawn.vala
patch
|
blob
|
history
diff --git
a/Spawn.vala
b/Spawn.vala
index
b5df8c8
..
be7a379
100644
(file)
--- a/
Spawn.vala
+++ b/
Spawn.vala
@@
-436,6
+436,11
@@
public class Spawn : Object
size_t term_pos;
size_t len;
IOStatus status;
+
+ if (this.pid < 0) {
+ return false; // spawn complete + closed... can't read any more.
+ }
+
try {
var cond = ch.get_buffer_condition();
if ((cond & GLib.IOCondition.ERR) > 0) {