home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aix
- Path: sparky!uunet!psisa!robin
- From: robin@pencom.com (Robin D. Wilson)
- Subject: Re: uucp and getty on a shared tty - anybody done it ?
- Message-ID: <1992Aug25.212911.26647@psisa.psi>
- Sender: usenet@psisa.psi (News system)
- Organization: Pencom Software, Austin, TX
- References: <199210Aug.074455.13070@quay.ie> <BsvL32.G5L@csn.org>
- Date: Tue, 25 Aug 1992 21:29:11 GMT
- Lines: 44
-
- In article <BsvL32.G5L@csn.org> losburn@teal.csn.org (Lynn Osburn) writes:
- >>uucp can't work unless permissions grant it read access to the port. So far,
- >>the solution that I have come up with is to put a "chmod 666 /dev/tty1" into
- >>the root cron file, and this works, but is hardly elegant. What is the
- >>solution to this problem ? Is there some way to set the default permissions
- >>that getty configures a port with ?
- >>
- >
- >Use pdelay instead of pshare. In enable or share mode, getty grabs the port,
- >waiting for a login. In delay mode, there is no getty until CD goes high,
- >indicating a connection, and then after a short time (~3 sec?), or if
- >characters are recieved, a getty is spawned to handle the (implied) login.
- >
- >Since getty hasn't locked the port till CD changes state, uucp can grab it
- >for outgoing calls. When he gets a Carrier Detect, getty can't start because
- >uucp has a lock on the port...
-
- In reality 'getty' starts immediately. For "what getty does" see below:
-
- ENABLE: Getty starts, locks the tty, and blocks waiting for carrier. When
- carrier is asserted, getty presents the login herald.
-
- SHARE: Getty starts, and blocks waiting for carrier. When carrier is
- asserted, getty attempts to lock the tty (if it is not already
- locked by some other program - like 'cu', or 'uucico'). If
- getty gets the lock, it presents the login herald; if not, it
- prepares to HUPCL (Hang-UP-on-CLose).
-
- DELAY: Getty starts, and blocks waiting for carrier. When carrier is
- asserted, getty blocks waiting for a "read()" to succeed (a
- character appears on the serial RX data line). When the "read()"
- is sucessful, getty attempts to lock; if the lock succeeds, getty
- presents the login herald. If the lock attempt fails, getty
- prepares to HUPCL.
-
-
- The original poster may have seriously out-dated code (AIX-wise). I seem to
- remember his problem as a bug from pre-3003 days. Maybe it came back?
-
- --
- +---------------------------------------------------------------------------+
- |These are MY views, nobody where I work even knows I have views ;-) |
- |Internet: robin@pencom.com |
- |US Mail: 8-6 Brooke Club Dr. Home Phone: (914) 923-4093 |
-