From owner-freebsd-questions Tue Mar 24 15:28:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA18894 for freebsd-questions-outgoing; Tue, 24 Mar 1998 15:28:13 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from menger.eecs.stevens-tech.edu (dvsmith@menger.eecs.stevens-tech.edu [155.246.89.81]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA18810 for ; Tue, 24 Mar 1998 15:28:05 -0800 (PST) (envelope-from dvsmith@menger.eecs.stevens-tech.edu) Received: from localhost (dvsmith@localhost) by menger.eecs.stevens-tech.edu (8.8.7/8.8.7) with SMTP id SAA14861; Tue, 24 Mar 1998 18:27:50 -0500 (EST) Date: Tue, 24 Mar 1998 18:27:46 -0500 (EST) From: Dave Smith Reply-To: gourry@slayers.org To: David Shanes cc: freebsd-questions@FreeBSD.ORG Subject: Re: Sockets stuck in CLOSE_WAIT In-Reply-To: <016801bd575d$2373f960$1d43a8c0@shanes.personalogic.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thank you for your quick response. I found the problem, and it was due to a poor assumption on my part. I did not realize that the filehandle the socket returned was NOT set close-on-exec. So the sockets were open in programs after the exec, which meant they wouldn't close. After a bit of use of fstat and netstat -A, I found this. David Smith On Tue, 24 Mar 1998, David Shanes wrote: > Are you aborting the Server? You should use the shutdown(int skt, int flag) > command to ensure it gracefully shuts down the server. > > David > > _____________________________________________________ > David Shanes 7535 Metropolitan Drive > dshanes@personalogic.com San Diego, CA 92108 > Database Developer (619) 220-5800 x228 > PersonaLogic, Inc. (619) 220-5899 (fax) > http://www.PersonaLogic.com > > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message