Re: pidfile_open incorrectly returns EAGAIN when pidfile is lock

看板FB_current作者時間12年前 (2013/04/27 14:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串14/14 (看更多)
On Thursday, March 14, 2013 4:21:02 pm Pawel Jakub Dawidek wrote: > On Thu, Mar 14, 2013 at 10:11:07AM -0700, Chuck Swiger wrote: > > Hi-- > > > > On Mar 14, 2013, at 9:50 AM, John Baldwin wrote: > > > On Thursday, March 14, 2013 12:29:58 pm Pawel Jakub Dawidek wrote: > > > > [ ... ] > > >> Heh, I did consider that as well, but here you check errno twice, > > >> instead of once. Guys, is there anything wrong with the patch I > > >> proposed? > > > > > > I'm sure the compiler can work that out just fine and it should do whatever > > > is most readable to the programmer. I don't care either way. > > > > Strong +1. Having the code be correct and readable is much more important > > then trying to hand-optimize a single-digit # of integer compares in > > startup code that usually runs ~once per process. > > Well, I think my version is more obvious, just the diff is larger. > Anyway, I think enough has been said already about this crucial change:) Yours is fine, commit it already. -- John Baldwin _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1HUscVWQ (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 14 之 14 篇):
文章代碼(AID): #1HUscVWQ (FB_current)