diff options
author | Philipp Stephani <phst@google.com> | 2020-12-30 23:43:07 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2020-12-31 00:18:02 +0100 |
commit | 8bc85d46cc9214a531f2d2ecb3f5fb48af8105a6 (patch) | |
tree | 346a7c64ac0b6a78eacdeb69b73a446d33d87266 /test/lisp/emacs-lisp | |
parent | f43f1e32e92ef341077b4ffdfdd743b1a6d9d284 (diff) | |
download | emacs-8bc85d46cc9214a531f2d2ecb3f5fb48af8105a6.tar.gz emacs-8bc85d46cc9214a531f2d2ecb3f5fb48af8105a6.tar.bz2 emacs-8bc85d46cc9214a531f2d2ecb3f5fb48af8105a6.zip |
Manually limit file descriptors that we select on to FD_SETSIZE.
This works even if another thread or process resets the resource limit
for open file descriptors, e.g., using 'prlimit' on GNU/Linux.
* src/process.c (create_process, create_pty, Fmake_pipe_process)
(Fmake_serial_process, connect_network_socket)
(server_accept_connection): Limit file descriptors to FD_SETSIZE.
* test/src/process-tests.el (process-tests--with-raised-rlimit): New
helper macro.
(process-tests--fd-setsize-test): Rename from
'process-tests--with-many-pipes'. Increase resource limit during test
if possible.
(process-tests/fd-setsize-no-crash/make-process)
(process-tests/fd-setsize-no-crash/make-pipe-process)
(process-tests/fd-setsize-no-crash/make-network-process)
(process-tests--new-pty): Rename callers.
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions