home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!auspex-gw!guy
- From: guy@Auspex.COM (Guy Harris)
- Newsgroups: comp.unix.wizards
- Subject: Re: /dev/null and file locking
- Message-ID: <15945@auspex-gw.auspex.com>
- Date: 17 Dec 92 00:29:13 GMT
- References: <1992Dec15.233957.1147@microplex.com>
- Sender: news@auspex-gw.auspex.com
- Distribution: na
- Organization: Auspex Systems, Santa Clara
- Lines: 15
- Nntp-Posting-Host: auspex.auspex.com
-
- >Can two processes write both these devices simultaneously without problems?
-
- Yes, but in most if not all implementations of UNIX, they'll have
- separate inodes/vnodes; the driver may or may not properly keep track of
- both streams of data, so it's not clear how they'll get interleaved.
-
- :-)
-
- >What happens when two processes try to lock /dev/null and /dev/another_null?
- >
- >My guess is the locking is done at the inode level and each will have a
- >successful lock.
-
- Inode or vnode or equivalent level; that should be true on most if not all
- flavors of UNIX.
-