home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 22964 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  2.6 KB

  1. Path: sparky!uunet!newsflash.concordia.ca!clyde.concordia.ca!altitude!Nyongwa.CAM.ORG!steve
  2. From: steve@Nyongwa.CAM.ORG (Steve M. Robbins)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: UUGETTY & Lock files...
  5. Message-ID: <C0G2C5.Cp5@Nyongwa.CAM.ORG>
  6. Date: 6 Jan 93 18:07:16 GMT
  7. References: <1993Jan3.061828.27179@exucom.com> <C0EFGJ.706@jti.com>
  8. Organization: Chiral Symmetry Breaking, Inc.
  9. Lines: 48
  10.  
  11. In article <C0EFGJ.706@jti.com> richb@jti.com (Richard Braun) writes:
  12. >kjv@exucom.com (Karl J. Vesterling) writes:
  13. >>    Where do I obtain a version of uugetty which functions, or at
  14. >>least has the documentation?  Here are the problems I am experiencing:
  15. >>
  16. >>    o Lock-files (They exist, BUT they all are invalid/stale)
  17. >>      Maybe the pid in them is not the pid of the users shell, and
  18. >>      is/was the pid of uugetty itself?  IE, uugetty creates the
  19. >>      lock file, puts it's PID in the file, then exits, thus
  20. >>      causing the lock file to be stale?
  21. >
  22. >It took a bit of source-code reading, but I finally figured out how
  23. >to get uugetty working properly.  First off, there's an issue with
  24. >the contents of the lock files.  Apparently some software uses ASCII-
  25. >format PIDs, and other programs use binary-format.  (You can tell
  26. >by seeing if the file is 4 bytes long or about 10:  the 4-byte version
  27. >is binary.)  My version of kermit uses binary PIDs so I had to change
  28. >and recompile uugetty to do likewise.  (I've not checked the format
  29. >of the files created by uucp.)  It'd be nice if all this were
  30. >consistent in Linux 1.0.
  31.  
  32. The problem is worse in that my kermit uses binary pids and my uucico uses
  33. ascii pids.  So I hacked in code that will try a binary read if the ascii
  34. read fails, this way it works with both types.
  35.  
  36. All gettyps distributions I have uploaded were configured in this manner, so
  37. people with this problem must have changed the config.h file themselves. 
  38. The tricky thing that isn't documented is that you have to #define *BOTH*
  39. 'ASCIIPID' and 'BOTHPID' in config.h (near the bottom) for this to work.
  40.  
  41. >The next trick is this:  you have to tell uugetty to wait before
  42. >creating a lock file.  This can be done by putting WAITCHAR=YES in
  43. >the /etc/default/uugetty.ttyxx file.
  44.  
  45. Yes, for a dumb modem that you are dialing by hand, this is true.
  46. For a smart modem, you can just keep the WAITFOR=RING line in the defaults.
  47.  
  48. >Problems with uugetty can sometimes be solved by putting DEBUG=0377 in
  49. >the uugetty.ttyxx config file; it'll create voluminous output in
  50. >the /tmp directory, which can be helpful especially if you compare
  51. >it with the source code.
  52.  
  53. >-rich
  54.  
  55. -- 
  56. Steve Robbins  --  steve@nyongwa.cam.org
  57. I asked Hank Williams "how lonely does it get?"
  58. Hank Williams hasn't answered yet.
  59.