in reply to Timing out shell commands (paranoia)
As an asside I would Strongly recomend that you do not use kill 9, this sends a sigkill to your child process. SigKill cannot be trapped by the process to allow clean sutdown. The chance that you will leave your child in a mess is high. Send sigquit (3) this is a nice gentle tap on the head requesting the child die. If you feel that it is important to ensure the child dies and you are concerned that the child may ignore sigquit then use waitpid to ensure that the process dies, send sigkill iFF the child refuses to die.
--
Zigster
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: (Zigster) Timing out shell commands (paranoia)
by bluto (Curate) on May 02, 2001 at 22:06 UTC |