Ticket #2008: patch-src-subshell.c

File patch-src-subshell.c, 338 bytes (added by fjoe, 15 years ago)
Line 
1--- src/subshell.c.orig 2010-02-06 15:34:55.000000000 +0600
2+++ src/subshell.c      2010-02-06 15:35:52.000000000 +0600
3@@ -948,7 +948,7 @@
4     wptr = fail_on_error ? &wtime : NULL;
5 
6     while (1) {
7-       if (!subshell_alive)
8+       if (!subshell_alive || !pty_buffer)
9            return FALSE;
10 
11        /* Prepare the file-descriptor set and call `select' */