home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!enterpoop.mit.edu!cambridge.cygnus.com!cambridge.cygnus.com!not-for-mail
- From: ian@cygnus.com (Ian Lance Taylor)
- Newsgroups: comp.mail.uucp
- Subject: Re: UUCP error - REMOTE HAS A LCK FILE FOR ME
- Date: 23 Nov 1992 21:45:54 -0500
- Organization: Cygnus Support
- Lines: 34
- Message-ID: <1es512INN9nn@tweedledumbest.cygnus.com>
- References: <1emqv1INN4t2@morrow.stanford.edu> <4022@ecicrl.ocunix.on.ca>
- NNTP-Posting-Host: tweedledumbest.cygnus.com
-
- clewis@ferret.ocunix.on.ca (Chris Lewis) writes:
-
- >In article <1emqv1INN4t2@morrow.stanford.edu> ayub@krypton.Stanford.EDU (Ayub Butt) writes:
-
- >>When I invoke uucico [manually] to test the operation, I get the
- >>error message "UUCP error - REMOTE HAS A LCK FILE FOR ME".
-
- >If this situation persists, this means that uucico on the other end
- >died, and forgot to remove the lock (though some uucicos will kill
- >the lock if it's old enough), OR that there's a uucico process hung
- >trying to connect to you.
-
- This is basically correct. Just to make it exactly correct (I'm sure
- Chris knows this, but didn't bother to say it), most versions of
- uucico don't check the date (in fact, I don't know of any that do
- check the date). Instead, the lock file itself contains a process ID.
- If that process ID exists, the lock is considered to be valid.
-
- For example, a quick way to prevent uucico from talking to a remote
- system is to say (but see below)
- echo 0000000001 > /usr/spool/uucp/LCK..system
- where system is the system you want to lock.
-
- This works because process 1 always exists.
-
- The example above assumes HDB style lock files; the other common
- styles uses a four byte binary number. Also, the actual directory
- containing the lock file varies from system to system; common cases
- are /usr/spool/uucp or /usr/spool/locks.
-
- So, anyhow, probably there is a lock file, and it contains the process
- ID of a process that exists.
-
- Ian Taylor
-