I've had a bunch of EAGAIN's from trying to fork() or spawning threads, which lead me to believe that I'm leaking resources somewhere.
Is it possible, in POSIX, to get the following from inside the process itself:
number of active pthreads
number of active child processes
number of active pipes
number of active sockets (or maybe this and pipes would be counted as file descriptors?)
Or do these have to be counted manually? There's already counters for them, but I think one of them are leaking.