Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!mcvax!kth!draken!tut!tukki!eloranta From: eloranta@tukki.jyu.fi (Jussi Eloranta) Newsgroups: comp.unix.wizards Subject: Re: Locks for exclusive access to resources Message-ID: <907@tukki.jyu.fi> Date: 15 Jun 89 05:14:24 GMT References: <1020@twwells.uucp> <1989Jun14.052648.20183@twwells.com> Reply-To: eloranta@tukki.jyu.fi (Jussi Eloranta) Organization: University of Jyvaskyla, Finland Lines: 15 How can I lock a tape frive for example intelligently? (bsd 4.2) Links are not usable int his case since all program won't check for that lock. The only thing that I figured out was just to chown + chmod the tape special files in /dev. But this surely contains some race conditions.. I also file locks (flock and lockf) since they are 'advisory' locks, besides the fork would be a problem... Does anyone know a bettert way to do this? Jussi -- ============================================================================ Jussi Eloranta Internet(/Bitnet): University of Jyvaskyla, eloranta@tukki.jyu.fi Finland [128.214.7.5]