看板 FB_bugs 關於我們 聯絡資訊
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 _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"