From: Juanma Barranquero Date: Mon, 14 Nov 2011 17:52:09 +0000 (+0100) Subject: Fix bug#10044 X-Git-Tag: emacs-pretest-24.0.92~190 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f067b8eccaa2990b157f2a97a1122211ae751156;p=emacs.git Fix bug#10044 src/w32proc.c (reader_thread): Don't check pending input if cp->fd < 0, just return. --- 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 */ -