/bin/sh question

Martin Cracauer cracauer at cons.org
Sun May 9 18:53:55 PDT 2004


Dmitry Sivachenko wrote on Fri, Apr 30, 2004 at 03:28:29PM +0400: 
> 
> We use recent -STABLE.
> We observed /bin/sh looping forever executing a script.
> We run this script with -T option to sh(1).
> When sh(1) receives a HUP, we entering our trap handler which spawns
> child process.  When this process exits, sh(1) loops.

Need a test script.  I committed a bogus change some time ago but that
never made it into -stable, except maybe somebody else merged :-/

I am not sure you are allowed to fork in a trap handler, can't check
right now.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer at cons.org>   http://www.cons.org/cracauer/
 No warranty.    This email is probably produced by one of my cats 
 stepping on the keys. No, I don't have an infinite number of cats.


More information about the freebsd-hackers mailing list