July 18th, 2003, 04:57 AM
Multi-process C program
I have a problem with what I think is racing in a multi-process C program on a Sun solaris machine.
The program spins off about 350 (the processes are dripped out to the machine whereby about 70 are active a any one time)process to do various jobs. The parent process waits for these forked processes to return before it closes down. This program worked fine on a DG Unix machine but on the move to Sun (a far more powerful machine) the program misses some of the processes and leaves them in a 'defunt' state which means the program does not close properly and therefore do the final reports. Each of the defunct process does it's own business properly but cannot report back to the parent.
July 18th, 2003, 07:10 AM
Anyone come across this before and maybe got a fix?