Getting “Too Many Files Open” Error in C Shared Library Despite ulimit Set to Unlimited
I’m working on a C program where I’ve created a shared library to intercept the connect
system call and route the connection through a proxy server. The code works, but after running it for a while, I encounter a “Too Many Files Open” error, even though I’ve set ulimit -n
to unlimited.