Re: bin/74404: sh(1) does not handle signals to subshells proper

看板FB_bugs作者時間17年前 (2009/04/07 12:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
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"
文章代碼(AID): #19si__00 (FB_bugs)
文章代碼(AID): #19si__00 (FB_bugs)