]> git.eshelyaron.com Git - emacs.git/commit
Fix hang when deleting a pipe process
authorEli Zaretskii <eliz@gnu.org>
Sat, 11 Dec 2021 18:15:53 +0000 (20:15 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 11 Dec 2021 18:15:53 +0000 (20:15 +0200)
commita81669c69fda1a2d0d4238b8440145fb2aeb959f
treeef4f554f4505d9a5171f57878e2f38dea8d01cda
parent8c50016b100ec2c548ec90131e0f5fb5f4ebb5c1
Fix hang when deleting a pipe process

* src/w32.h (FILE_DONT_CLOSE): New flag.
* src/w32.c (sys_close): Don't close descriptors used to read from
the pipe process.  Leave the FILE_DONT_CLOSE flag set in the
descriptor's info.
(register_aux_fd): Set the FILE_DONT_CLOSE flag in the
descriptor's info.
* src/w32proc.c (reader_thread): When exiting normally, close the
file descriptor used to read from a pipe process.  (Bug#52414)
src/w32.c
src/w32.h
src/w32proc.c