Date: Tue, 11 May 2004 11:22:30 +0400 From: Dmitry Sivachenko <demon@FreeBSD.org> To: Martin Cracauer <cracauer@cons.org> Cc: hackers@FreeBSD.org Subject: Re: /bin/sh question Message-ID: <20040511072230.GA63238@sinbin.demos.su> In-Reply-To: <20040509215350.A79087@cons.org> References: <20040430112829.GA93243@sinbin.demos.su> <20040509215350.A79087@cons.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 09, 2004 at 09:53:50PM -0400, Martin Cracauer wrote: > 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. > A simple test script is provided in bin/66242.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040511072230.GA63238>