Date: Tue, 5 Oct 1999 23:50:46 -0600 From: Charles Randall <crandall@matchlogic.com> To: freebsd-hackers@freebsd.org Subject: bind(2) sets errno to undocumented EAGAIN? Message-ID: <64003B21ECCAD11185C500805F31EC0303E7386A@houston.matchlogic.com>
next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64003B21ECCAD11185C500805F31EC0303E7386A>