]> code.delx.au - gnu-emacs/commit
Fix bug #18420 with deadlocks communicating with subprocess on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Sun, 14 Sep 2014 15:18:39 +0000 (18:18 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 14 Sep 2014 15:18:39 +0000 (18:18 +0300)
commit9ed670023f6d7534f0e812417fe13ab3cfadaa7a
tree06b0c29a6085e82fdb3ddd02c15bd236c6d10006
parenta6cc335aef90cb4a2dc3fde77cbea9886240301e
Fix bug #18420 with deadlocks communicating with subprocess on MS-Windows.

 src/w32.c (fcntl): Support O_NONBLOCK fcntl on the write side of
 pipes.
 (sys_write): When a write to a non-blocking pipe returns ENOSPC,
 set errno to EAGAIN instead, to allow the caller to retry the
 write after some waiting.  Fixes deadlocks when Emacs exchanges a
 lot of data through the pipe.
src/ChangeLog
src/w32.c