cronie-crond / cronie

Cronie cron daemon project
Other
481 stars 81 forks source link

Optimization to close fds from /proc/self/fd in case of high nofile l… #151

Closed bwelterl closed 1 year ago

bwelterl commented 1 year ago

…imit after fork

If nofile is high, the close to all the (non existing) FDs will take time after the fork. We can use /proc/self/fd to close only existing FD.

Thanks

Benoit

t8m commented 1 year ago

Merged. Thank you for your contribution.