Is there any way that we can decide on the total number of open pipes in a unix system at any point of time? is some kind of book-keeping done by Unix OS [HP_UX11.0] so that an external policing can be done?
This is reqd since I got some junk problem that "a child is died and finished writing to a pipe but the parent is still trying to read the same pipe over and over which is taking the parent process to 100% CPU usage" . SIGCHLD and SIGPIPE are already in correct place.
The problem is not seen with a small lab set up hence I cant reproduce and see. Thats the reason I am interested to see if some external policing can be possible.
Also I am interested to know how the unix kernel assigns the pipe descriptors? Is it a incremental value [first pipe 3 & 4 , second 5 & 6 and so on ...]
What is the significance of /dev/fd directory in unix?
I will be happy to get some internal knowledge about this.