Re: incorrect use of pidfile(3)

看板FB_current作者時間14年前 (2011/10/14 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/10 (看更多)
Pawel Jakub Dawidek <pjd@FreeBSD.org> writes: > I'm still in opinion that EWOULDBLOCK and EAGAIN (which is the same > value on FreeBSD) should be converted to EEXIST on pidfile_open() > return. The historical (and documented) behavior is to return EAGAIN. > Also if we now have for loop, why not to put count in there? Because if we do, there will be a nanosleep after the last pidfile_read() attempt. We need to break the loop after pidfile_read() failed but before nanosleep(). > I'm not very happy about touching pidptr in case of error other than > EEXIST. This is not documented, but a bit unexpected anyway. Well, it was your idea, I just moved it to before the loop :) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no _______________________________________________ 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): #1EboTaIe (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1EboTaIe (FB_current)