From owner-freebsd-hackers Fri Jan 10 14:29:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA06704 for hackers-outgoing; Fri, 10 Jan 1997 14:29:59 -0800 (PST) Received: from sumatra.americantv.com (sumatra.americantv.com [199.184.181.250]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id OAA06699 for ; Fri, 10 Jan 1997 14:29:53 -0800 (PST) Received: from right.PCS (right.pcs. [148.105.10.31]) by sumatra.americantv.com (8.7.6/8.7.3) with ESMTP id QAA25952; Fri, 10 Jan 1997 16:28:28 -0600 (CST) Received: (jlemon@localhost) by right.PCS (8.6.13/8.6.4) id WAA21204; Fri, 10 Jan 1997 22:29:40 GMT Message-ID: Date: Fri, 10 Jan 1997 16:29:39 -0600 From: jlemon@americantv.com (Jonathan Lemon) To: mgessner@aristar.com Cc: hackers@freebsd.org (FreeBSD Hackers) Subject: Re: bind(2): address already in use -- how to fix? References: <199701102105.QAA23987@home.winc.com> X-Mailer: Mutt 0.56e Mime-Version: 1.0 In-Reply-To: <199701102105.QAA23987@home.winc.com>; from mgessner@aristar.com on Jan 10, 1997 16:05:55 -0500 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk mgessner@aristar.com writes: > in sig_chld, I get reported to me several pids that WERE NOT > the result of a fork() call by the server. Why is this? Most probably, they are the pids of the processes that you have spawned with popen(). popen() does an implicit fork/exec. > "Address already in use" You need to set SO_REUSEADDR in order to re-use the socket. See your copy of Stevens. -- Jonathan