in reply to Re: Child PID?
in thread Child PID?

I found out what was wrong. I was launching netscape for the first time and box that asks you a question has a differt PID than when the actual browser is launched. Anyway Im still a little confused about the difference between reaping and killing. In this situation would reaping be better than killing?

Replies are listed 'Best First'.
Re: Re: Re: Child PID?
by perigeeV (Hermit) on Jun 07, 2002 at 00:28 UTC

    Reaping is generally used to describe the action of terminating zombie processes, which are children that have outlived their parent. Since their parent does not exist to clean up after the child, the kernel's process table retains the defunct child. Such zombies must be reaped.

    Killing a process is a more general term used to describe the act of terminating an active process.

    If you are trying to automate the response to a dialog box, that's different. Just killing it could be bad.


      Note that in the program given, no zombies will be created as the handler for SIGCHLD is set to 'IGNORE' (which is the default on many OSses anyway).

      Abigail