]> git.eshelyaron.com Git - emacs.git/commit
Restore file descriptor limit in subprocesses
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Nov 2016 06:55:30 +0000 (22:55 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 7 Nov 2016 06:56:36 +0000 (22:56 -0800)
commitb6d9613df83813609ef80da45975e70954d1fb6d
treebf05ac8bbd5a91b40fb23a8d84dce66360884211
parentf1d19d1445a8e7d4ee0d13edb8ed99e222603086
Restore file descriptor limit in subprocesses

Problem reported by Philipp Stephani (Bug#24869).
* src/callproc.c (child_setup) [!DOS_NT]:
Call restore_nofile_limit in the child.
* src/process.c (nofile_limit) [HAVE_SETRLIMIT]: New static var.
(restore_nofile_limit): New function.
(init_process_emacs) [HAVE_SETRLIMIT]: Set the new var.
src/callproc.c
src/process.c
src/process.h