home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / mail / uucp / 2122 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.9 KB

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