From f067b8eccaa2990b157f2a97a1122211ae751156 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 14 Nov 2011 18:52:09 +0100 Subject: [PATCH] Fix bug#10044 src/w32proc.c (reader_thread): Don't check pending input if cp->fd < 0, just return. --- src/ChangeLog | 5 +++++ src/w32proc.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f4250ec83b0..3e2ebaa0efc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-11-14 Juanma Barranquero + + * w32proc.c (reader_thread): Don't check pending input if cp->fd < 0, + just return (bug#10044). + 2011-11-12 Eli Zaretskii * makefile.w32-in (HEAPSIZE): New variable, allows to build temacs diff --git a/src/w32proc.c b/src/w32proc.c index 47cbf57d9ea..65d63597fae 100644 --- a/src/w32proc.c +++ b/src/w32proc.c @@ -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 */ - -- 2.39.2