]> git.eshelyaron.com Git - emacs.git/commit
Don’t create fd >= FD_SETSIZE
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Sep 2016 04:15:35 +0000 (21:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 2 Sep 2016 04:16:03 +0000 (21:16 -0700)
commita5509099484e0762842bc2c9e914779397b91469
tree1f525c5b2fd175e83fb365e69334073c556f00e4
parentdda2d6a311fd2a7096176e240e4e81b423eaa8e2
Don’t create fd >= FD_SETSIZE

This avoids a potential crash if too many subprocesses (Bug#24325).
* src/process.c [HAVE_SETRLIMIT]: Include <sys/resource.h>.
(init_process_emacs): If ulimit -n is greater than FD_SETSIZE,
set it to FD_SETSIZE.
src/process.c