Problem
While logged in to my SCO OpenServer 5.0.x system via modem, I run the commands:
# lli stop
# lli startI am unable to connect again via modem. A subsequent cu attempt with the x9 option will result in the following:
altconn called Device Type ACU wanted lockname(/usr/spool/uucp/LCK..tty1a) File exists: link(/usr/spool/uucp/LTMP.6057, /usr/spool/uucp/LCK..tty1a) ulockf file /usr/spool/uucp/LCK..tty1a Lock File--process still active--not removed ungetty(/usr/spool/uucp/LCK..tty1a) lockfile '/usr/spool/uucp/LCK..tty1a' open lock pid = 560 mlock tty1A failed getto ret -1 Connect failed: DEVICE LOCKED call cleanup(1) call _mode(0)
Cause
The commands "lli stop" and "lli start" have caused the dlpid process to take control of the modem control port. It should release it but it does not, so getty is unsuccessful in a subsequent attempt at a login.
Normally, the command "ps -ef | grep tty1A" would result in the
following:root 548 1 0 Sep-09 ? 00:00:00 /etc/getty -t60 tty1A m
root 8167 8157 3 10:02:42 ttyp1 00:00:00 grep tty1AIf you run the command "ps -ef | grep dlpid" you will see that the
process has taken control of the port. Solution
To work around this, go to a non-serial tty and run the commands:
# lli stop
# lli start