aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2016-01-12 18:41:58 +0200
committerEli Zaretskii2016-01-12 18:41:58 +0200
commit58a622d473112f8ff5b4bdb3e49bc6573dfd3404 (patch)
tree58b618f654cae22d1e5f102cbb48bec56e833d45 /etc
parent1f6898d0510cd15455f665c0f38451755a374243 (diff)
downloademacs-58a622d473112f8ff5b4bdb3e49bc6573dfd3404.tar.gz
emacs-58a622d473112f8ff5b4bdb3e49bc6573dfd3404.zip
Make piping to subprocesses more robust on MS-Windows
* src/w32.c (sys_write): Don't write to a pipe more stuff than its buffer can hold. Don't return -1 if something has been written to the pipe. Zero out 'errno' before calling '_write', to avoid returning a stale value. (Bug#22344) * src/w32proc.c (syms_of_ntproc) <w32-pipe-buffer-size>: New variable. * src/w32.c (pipe2): Use it to request a user-defined size for the pipe being created. * etc/NEWS: Mention 'w32-pipe-buffer-size'. * doc/emacs/msdos.texi (Windows Processes): Document 'w32-pipe-buffer-size'.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 85ec30ac033..10fcb7e3fd4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1762,6 +1762,12 @@ this has no effect.
1762** The new function 'w32-application-type' returns the type of an 1762** The new function 'w32-application-type' returns the type of an
1763MS-Windows application given the name of its executable program file. 1763MS-Windows application given the name of its executable program file.
1764 1764
1765** New variable `w32-pipe-buffer-size'.
1766It can be used to tune the size of the buffer of pipes created for
1767communicating with subprocesses, when the program run by a subprocess
1768exhibits unusual buffering behavior. Default is zero, which lets the
1769OS use its default size.
1770
1765 1771
1766---------------------------------------------------------------------- 1772----------------------------------------------------------------------
1767This file is part of GNU Emacs. 1773This file is part of GNU Emacs.