Email List: Xaustin-group-lX
[All Lists]

Re: set -e and SIGCHLD

To: yyyyyyyyyyyyyyy@xxxxxx
Subject: Re: set -e and SIGCHLD
From: "Clive D.W. Feather" <yyyyy@xxxxxxxxx>
Date: Thu, 15 Mar 2001 09:52:09 +0000
Cc: yyyyyy@xxxxxxxxxxxxx, yyyyyyyyyyyyyy@xxxxxxxxxxxxx, yyyyy@xxxxxxxxxxxxxxxxxxx, yyy@xxxxxxxxxxx
References: <UTC200103131202.NAA173044.aeb@vlet.cwi.nl>
yyyyyyyyyyyyyyy@xxxxxx said:
> When a process dies its resources can be freed, except
> that maybe someone wants to see its exit status
> so some structure related to the deceased process
> survives. In this stage the process is called
> a zombie.

Right.

> You (=Clive) said something like (forgive my bad memory)
> "it is false that the parent process does nothing,
> it converts the child into a zombie".
> But that is a strange formulation.
> No code of the parent process is run for this conversion.

No - the kernel acts as the agent of the parent and runs the relevant code.

I don't care much about how it's worded; the important point is:
    SIGCHLD = SIG_DFL or function:  process becomes a zombie
    SIGCHLD = SIG_IGN:              process does not become a zombie

-- 
Clive D.W. Feather  | Work:  <yyyyy@xxxxxxxxx>   | Tel:  +44 20 8371 1138
Internet Expert     | Home:  <yyyyy@xxxxxxxxxx>  | Fax:  +44 20 8371 1037
Demon Internet      | WWW: http://www.davros.org | DFax: +44 20 8371 4037
Thus plc            |                            | Mobile: +44 7973 377646 

<Prev in Thread] Current Thread [Next in Thread>