]> git.mdlowis.com Git - proto/labwc.git/commit
main: Increase FD limit
authorJoshua Ashton <joshua@froggi.es>
Sun, 17 Jul 2022 00:49:26 +0000 (00:49 +0000)
committerJoshua Ashton <joshua@froggi.es>
Sun, 17 Jul 2022 00:59:23 +0000 (00:59 +0000)
commit722aa042b7a270d8da3f2a7c78c77dd59d67eb9b
tree2dc3f66a7328715873e56d3cd91167c85e6b6bff
parent6c2bbb42ea612831da826cd80fdf71e8ec7c6079
main: Increase FD limit

This defaults to 1024, which is tiny, but is a requirement
for processes using the deprecated `select` function.

We must reset this back whenever we fork to start a new process,
as this is inherited, and breaks applications using `select` otherwise.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
src/common/spawn.c
src/main.c