UUCP Port Turnaround
wescott at sauron.UUCP
wescott at sauron.UUCP
Wed Feb 11 09:27:42 AEST 1987
In article <166 at piaget.UUCP> jc at piaget.UUCP (John Cornelius, System Manager) writes:
> In article <4090 at nsc.nsc.com> jon at nsc.UUCP (Jon Ryshpan) writes:
> >Does anyone know a simple method to "turn a port around" so as to
> >make an outgoing call on a port which is usually used for incoming
> >connections? ...
> HDB uucp permits this. A separate getty (uugetty) is fired up
> for such lines. Uugetty locks the port with a lock file. I do
> not know the mechanism for making uugetty unconcious but I
> presume that a signal is used.
The HDB uugetty waits until the line is active before checking for a lock.
The line is active when the open completes (i.e. Carrier Detect is on) or,
if uugetty is invoked with a '-r' option, when the first character is received.
uugetty checks the lock file for the line and if the file is not present or
if it contains an old pid, uugetty sets a new lock and continues much like
/etc/getty. Note that nobody removes this lock file until a new uugetty
or uucico finds that the pid in it is no longer valid.
If a valid lock is present, then uugetty loops sleeping and rechecking the
lock. When the locking process has terminated, uugetty exits and is respawned
by init.
The HDB uugetty will not work on 4.? machines because of the mechanism used
to check locks.
--
-Mike Wescott
ncrcae!wescott
More information about the Comp.unix.questions
mailing list