You can use the "top" command to check for zombies, in case your program is leaving orphaned processes around once it exits - just run it before and after, and see if the zombie count increases. | [reply] |
zombie processes are reaped by the init process as soon as the main process exits so in practice it is impossible to have orphaned zombie processes!
| [reply] |
OK, I probably didn't use the best terminology there. Semantics aside, my point was that the "top" command would allow the user to see if the program was creating zombies in the first place, and hopefully help to debug the issue.
Thanks for "clarifying" things and providing valuable pointers.....
| [reply] |