diff options
| author | Paul Eggert | 2016-11-06 22:55:30 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-11-06 22:56:36 -0800 |
| commit | b6d9613df83813609ef80da45975e70954d1fb6d (patch) | |
| tree | bf05ac8bbd5a91b40fb23a8d84dce66360884211 /src/process.h | |
| parent | f1d19d1445a8e7d4ee0d13edb8ed99e222603086 (diff) | |
| download | emacs-b6d9613df83813609ef80da45975e70954d1fb6d.tar.gz emacs-b6d9613df83813609ef80da45975e70954d1fb6d.zip | |
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); | |||
| 265 | extern void add_write_fd (int fd, fd_callback func, void *data); | 265 | extern void add_write_fd (int fd, fd_callback func, void *data); |
| 266 | extern void delete_write_fd (int fd); | 266 | extern void delete_write_fd (int fd); |
| 267 | extern void catch_child_signal (void); | 267 | extern void catch_child_signal (void); |
| 268 | extern void restore_nofile_limit (void); | ||
| 268 | 269 | ||
| 269 | #ifdef WINDOWSNT | 270 | #ifdef WINDOWSNT |
| 270 | extern Lisp_Object network_interface_list (void); | 271 | extern Lisp_Object network_interface_list (void); |