Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Apr 2009 03:40:04 GMT
From:      Mike Silbersack <silby@silby.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/74404: sh(1) does not handle signals to subshells properly and/or $! is broken
Message-ID:  <200904070340.n373e4mm004247@freefall.freebsd.org>

index | next in thread | raw e-mail

The following reply was made to PR bin/74404; it has been noted by GNATS.

From: Mike Silbersack <silby@silby.com>
To: Jilles Tjoelker <jilles@stack.nl>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/74404: sh(1) does not handle signals to subshells properly
 and/or $! is broken
Date: Mon, 6 Apr 2009 22:11:08 -0500 (CDT)

 On Sun, 5 Apr 2009, Jilles Tjoelker wrote:
 
 >> [ sh forks twice for (somecommand) & ]
 >
 > It seems reasonable for sh to fork twice here. You can avoid it by doing
 > { somecommand; } &.
 
 I honestly don't remember how I came up with the script in question, but I 
 suspect that I picked it up from an example bash script.  Based on that, 
 it may be worth making the script function as is.
 
 Mike "Silby" Silbersack


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904070340.n373e4mm004247>