From owner-freebsd-hackers Tue Oct 5 22:51: 6 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from houston.matchlogic.com (houston.matchlogic.com [205.216.147.127]) by hub.freebsd.org (Postfix) with ESMTP id CB03F14DA6 for ; Tue, 5 Oct 1999 22:50:57 -0700 (PDT) (envelope-from crandall@matchlogic.com) Received: by houston.matchlogic.com with Internet Mail Service (5.5.2448.0) id ; Tue, 5 Oct 1999 23:50:48 -0600 Message-ID: <64003B21ECCAD11185C500805F31EC0303E7386A@houston.matchlogic.com> From: Charles Randall To: freebsd-hackers@freebsd.org Subject: bind(2) sets errno to undocumented EAGAIN? Date: Tue, 5 Oct 1999 23:50:46 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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