diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-06 22:55:30 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-11-06 22:56:36 -0800 |
commit | b6d9613df83813609ef80da45975e70954d1fb6d (patch) | |
tree | bf05ac8bbd5a91b40fb23a8d84dce66360884211 /src/process.h | |
parent | f1d19d1445a8e7d4ee0d13edb8ed99e222603086 (diff) | |
download | emacs-b6d9613df83813609ef80da45975e70954d1fb6d.tar.gz |
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.
Diffstat (limited to 'src/process.h')
-rw-r--r-- | src/process.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 9926050b9c3..24c628231a0 100644 --- a/src/process.h +++ b/src/process.h @@ -265,6 +265,7 @@ extern void delete_read_fd (int fd); extern void add_write_fd (int fd, fd_callback func, void *data); extern void delete_write_fd (int fd); extern void catch_child_signal (void); +extern void restore_nofile_limit (void); #ifdef WINDOWSNT extern Lisp_Object network_interface_list (void); |