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