On Monday 08 May 2006 8:39 am, Per Jessen wrote:
I had to go quite far back to find the pipe() call that gives me a set of 13 and 14.
I was hoping strace would do it for me, but it might be better just doing it myself.
It is tedious to do this, but you really need to track every open(2) and close(2). You also have a complicated system where you are using BOTH threads and forks. Be very careful of using fork(2) from threads. To quote from Dave Butenhof, "Avoid using forkin a threaded program (if you can) unless you intend to exec a new program immediately". Page 197 "Programming with POSIX Threads". I can personally attest for David being a good authority on Pthreads.