finding per process open files
When a thread is created in linux it gets a copy of the processes file table. All the examples I have seen use a global variable to pass file descriptors for pipes etc. to children or threads but it would seem to me there must be a way to locate the file descriptor is the copied table the thread or child inherited.
what api's etc are available to look at a process / thread's file descriptor table in c / c++ ?
|