Under what conditions does bind(2) set errno to EAGAIN? The 3.2R bind(2)
manual page does not list that as a valid value for errno when bind returns
-1.
This came up when using http_load (http://www.acme.com/software/http_load)
to stress-test a local web server. In other words, using http_load to test a
web server running on the same machine. Debugging a bit, I determined that a
call to bind in http_load.c returns -1 and sets errno to 35 (which is
defined as EAGAIN in /usr/include/errno.h).
Using ktrace/kdump,
522 http_load CALL socket(0x2,0x1,0x6)
522 http_load RET socket 4
522 http_load CALL bind(0x4,0x805f404,0x10)
522 http_load RET bind -1 errno 35 Resource temporarily unavailable
What resource is unavailable?
Charles
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message