Fix bug#10044
src/w32proc.c (reader_thread): Don't check pending input if cp->fd < 0, just return.
This commit is contained in:
parent
a9a75fac5e
commit
f067b8ecca
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-11-14 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* w32proc.c (reader_thread): Don't check pending input if cp->fd < 0,
|
||||
just return (bug#10044).
|
||||
|
||||
2011-11-12 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* makefile.w32-in (HEAPSIZE): New variable, allows to build temacs
|
||||
|
|
|
@ -241,7 +241,8 @@ reader_thread (void *arg)
|
|||
|
||||
/* We have to wait for the go-ahead before we can start */
|
||||
if (cp == NULL
|
||||
|| WaitForSingleObject (cp->char_consumed, INFINITE) != WAIT_OBJECT_0)
|
||||
|| WaitForSingleObject (cp->char_consumed, INFINITE) != WAIT_OBJECT_0
|
||||
|| cp->fd < 0)
|
||||
return 1;
|
||||
|
||||
for (;;)
|
||||
|
@ -2319,4 +2320,3 @@ where the performance impact may be noticeable even on modern hardware. */);
|
|||
staticpro (&Vw32_valid_codepages);
|
||||
}
|
||||
/* end of w32proc.c */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue