diff options
| author | Eli Zaretskii | 2016-01-12 18:41:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-01-12 18:41:58 +0200 |
| commit | 58a622d473112f8ff5b4bdb3e49bc6573dfd3404 (patch) | |
| tree | 58b618f654cae22d1e5f102cbb48bec56e833d45 /etc | |
| parent | 1f6898d0510cd15455f665c0f38451755a374243 (diff) | |
| download | emacs-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/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -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 |
| 1763 | MS-Windows application given the name of its executable program file. | 1763 | MS-Windows application given the name of its executable program file. |
| 1764 | 1764 | ||
| 1765 | ** New variable `w32-pipe-buffer-size'. | ||
| 1766 | It can be used to tune the size of the buffer of pipes created for | ||
| 1767 | communicating with subprocesses, when the program run by a subprocess | ||
| 1768 | exhibits unusual buffering behavior. Default is zero, which lets the | ||
| 1769 | OS use its default size. | ||
| 1770 | |||
| 1765 | 1771 | ||
| 1766 | ---------------------------------------------------------------------- | 1772 | ---------------------------------------------------------------------- |
| 1767 | This file is part of GNU Emacs. | 1773 | This file is part of GNU Emacs. |