home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / wizards / 5258 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  954 b 

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.unix.wizards
  4. Subject: Re: /dev/null and file locking
  5. Message-ID: <15945@auspex-gw.auspex.com>
  6. Date: 17 Dec 92 00:29:13 GMT
  7. References: <1992Dec15.233957.1147@microplex.com>
  8. Sender: news@auspex-gw.auspex.com
  9. Distribution: na
  10. Organization: Auspex Systems, Santa Clara
  11. Lines: 15
  12. Nntp-Posting-Host: auspex.auspex.com
  13.  
  14. >Can two processes write both these devices simultaneously without problems?
  15.  
  16. Yes, but in most if not all implementations of UNIX, they'll have
  17. separate inodes/vnodes; the driver may or may not properly keep track of
  18. both streams of data, so it's not clear how they'll get interleaved.
  19.  
  20. :-)
  21.  
  22. >What happens when two processes try to lock /dev/null and /dev/another_null?
  23. >
  24. >My guess is the locking is done at the inode level and each will have a
  25. >successful lock.
  26.  
  27. Inode or vnode or equivalent level; that should be true on most if not all
  28. flavors of UNIX.
  29.