aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/w32proc.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index a9e0e0cb83f..d874d183b17 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -1,6 +1,6 @@
1/* Process support for GNU Emacs on the Microsoft W32 API. 1/* Process support for GNU Emacs on the Microsoft W32 API.
2 Copyright (C) 1992, 1995, 1999, 2000, 2001, 2002, 2003, 2004, 2 Copyright (C) 1992, 1995, 1999, 2000, 2001, 2002, 2003, 2004,
3 2005, 2006 Free Software Foundation, Inc. 3 2005, 2006 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -280,7 +280,10 @@ reader_thread (void *arg)
280 { 280 {
281 int rc; 281 int rc;
282 282
283 rc = _sys_read_ahead (cp->fd); 283 if (fd_info[cp->fd].flags & FILE_LISTEN)
284 rc = _sys_wait_accept (cp->fd);
285 else
286 rc = _sys_read_ahead (cp->fd);
284 287
285 /* The name char_avail is a misnomer - it really just means the 288 /* The name char_avail is a misnomer - it really just means the
286 read-ahead has completed, whether successfully or not. */ 289 read-ahead has completed, whether successfully or not. */