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 Wed, 13 Mar 2013, Pawel Jakub Dawidek wrote: > How about this patch? > > http://people.freebsd.org/~pjd/patches/pidfile.c.patch If you move the lines + if (errno == 0 || errno == EAGAIN) + errno = EEXIST; out of the else branch, you can get rid of the if branch, guard the else branch by a + if (pidptr) { and let the if (errno == 0 || errno == EAGAIN) fix the errno Regards, erdgeist _______________________________________________ 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): #1HUscVLX (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 14 之 14 篇):
文章代碼(AID): #1HUscVLX (FB_current)