# HG changeset patch # User Kim F. Storm # Date 1152886732 0 # Node ID 7c2a2cf361cb923069023c747cc938bde61fb249 # Parent 307ddb85a38806af387bfd40fd63ef731229be8f (reader_thread): Use _sys_wait_accept to wait on a server socket (FILE_LISTEN flag). diff -r 307ddb85a388 -r 7c2a2cf361cb src/w32proc.c --- a/src/w32proc.c Fri Jul 14 14:18:44 2006 +0000 +++ b/src/w32proc.c Fri Jul 14 14:18:52 2006 +0000 @@ -1,6 +1,6 @@ /* Process support for GNU Emacs on the Microsoft W32 API. Copyright (C) 1992, 1995, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006 Free Software Foundation, Inc. + 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -280,7 +280,10 @@ { int rc; - rc = _sys_read_ahead (cp->fd); + if (fd_info[cp->fd].flags & FILE_LISTEN) + rc = _sys_wait_accept (cp->fd); + else + rc = _sys_read_ahead (cp->fd); /* The name char_avail is a misnomer - it really just means the read-ahead has completed, whether successfully or not. */