home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / protocol / tcpip / 5731 < prev    next >
Encoding:
Text File  |  1992-12-23  |  968 b   |  25 lines

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