Hello All,
I have this process which runs a child and sleeps for 5 mins and then cleans child(zombie) and prints its exit status.
Sometimes child exits early and I can not wait 5 mins for parent to print status (and I can not modify parent code). So is there a way to find the exit status of a child zombie process from proc or ps or any other way? Proc has file called status but I couldnt find if it shows exit code somewhere, can anyone help?
Google doesnt help much.
Thanks in advance.
Amish.
On 10/13/05, Amish Mehta amish@ownmail.com wrote:
So is there a way to find the exit status of a child zombie process from proc or ps or any other way? Proc has file called status but I couldnt find if it shows exit code somewhere, can anyone help?
Maybe you can make use of the BSD process accounting feature in Linux?
-- Rohan http://rohan.almeida.in