home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.protocols.tcp-ip
- Path: sparky!uunet!gatech!destroyer!ncar!noao!rstevens
- From: rstevens@noao.edu (W. Richard Stevens)
- Subject: Re: what to do with those pesky Unix domain socket files
- Message-ID: <1992Dec23.124315.2293@noao.edu>
- Keywords: tcp/ip sockets
- Sender: news@noao.edu
- Nntp-Posting-Host: gemini.tuc.noao.edu
- Organization: National Optical Astronomy Observatories, Tucson, AZ, USA
- References: <d4Um03o6c5UD00@amdahl.uts.amdahl.com>
- Date: Wed, 23 Dec 1992 12:43:15 GMT
- Lines: 11
-
- > In our new SVR4 kernel, bind() to a unix domain socket creates a file
- > with the name specified in the bind call. But if the process is killed,
- > the file stays around, and when the process comes up again, it cannot
- > bind to the same name, and gets EADDRINUSE, even though there isn't
- > a valid socket using that name.
- >
- > How do others get around this problem?
-
- SOP is an unlink() before the bind(), ignoring the return code.
-
- Rich Stevens (rstevens@noao.edu)
-