Re: pidfile_open incorrectly returns EAGAIN when pidfile is lock
On Thu, 14 Mar 2013, Pawel Jakub Dawidek wrote:
> Right. Your patch assumes EWOULDBLOCK is equal to EAGAIN, which is true
> on FreeBSD, but is not portable. Also in case pidptr is NULL you compare
> errno three times instead of just one (not a big deal of course, just
> something that could be done a bit more optimal:)).
You're right.
OTOH, wouldn't modifying pidfile_read to return EAGAIN and not EWOULDBLOCK
totally be worth saving that 2 lines in the patch? ;)
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"
討論串 (同標題文章)
完整討論串 (本文為第 14 之 14 篇):