home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / vxworks / 1150 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.os.vxworks
  2. Path: sparky!uunet!news!wrs.com!geoff
  3. From: geoff@wrs.com (Geoff Espin)
  4. Subject: Re: Question about TCP sockets
  5. Message-ID: <geoff.725148696@wrs.com>
  6. Keywords: close() sockets TCP
  7. Sender: news@wrs.com (News Manager)
  8. Nntp-Posting-Host: harirud
  9. Organization: Wind River Systems, Inc.
  10. References: <1992Dec23.183018.4370@lds.loral.com>
  11. Date: Wed, 23 Dec 1992 22:11:36 GMT
  12. Lines: 17
  13.  
  14. jprice@lds.loral.com (Jeffrey Price) writes:
  15.  
  16. > ... when a Vxworks task terminates without explicitly closing the socket, 
  17. > subsequent reads and writes to that socket by another task do not fail like
  18. > they do under Unix. It appears that Vxworks does not realize that the task
  19. > using the socket has terminated.
  20.  
  21. VxWorks tasks are not UNIX processes.  File descriptors (& sockets) are global.
  22. If a task terminates (abnormally, or not) _it_, or some "master" task,
  23. is responsible for closing file descriptors -- if this is the desired model.
  24. taskCreate/DeleteHook's are sometimes used to keep track of fd's.
  25.  
  26. Geoff
  27. -- 
  28. Geoff Espin        geoff@wrs.com    (510)748-4100
  29. Wind            River        Systems
  30. 1010 Atlantic Avenue    Alameda        CA 94501
  31.