mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-11 13:01:23 +02:00
On FEXMountDaemon startup, fetch the FD limit and current number of open files. This allows us to track the number of open FDs we have. Once we get close the the safe threshold we then try increasing the soft limit towards the hard limit. If we bump up to the max (Say someone setting the hard limit to 256) then print some fairly big warning messages. With the previously fixed FD leak, we could very quickly hit the pipe limit because Steam is constantly opening new processes all the time. With the leak fixed, running Steam and idling, FEXMountDaemon only has around 16 pipes being watched.