mgetty locking problem.
MARK A BROWN (BROWNM5@POLAROID.COM)
Mon, 22 Jun 1998 18:35:24 +0200
I am using Linux (RedHat Linux 5.0 Intel - kernel 2.0.32) to manage a
modem pool consisting of 8 hayes 33.6 modems hung off a Cyclades
CYCLOM-8yo 8 port serial board (using devices ttyC0 - ttyC7).
I am using mgetty-1.1.9-3 (binary RPM distributed with RedHat 5) to
handle dial-in on 3 of the 8 modems, the remaining 5 modems are
dedicated to dial-out using pppd-2.3.3.
This is all functioning properly except for one piece:
During certain portions of the day I need to use all 8 modems for
dial-out, mgetty is supposed to work with pppd as long are both are
using the same locking scheme and devices (and I believe they are).
The problem is, mgetty seems to be leaving the modems it is watching
(ttyC0,ttyC1 and ttyC2) locked. Once it initializes the modems (data
only) it leaves the lock file (LCK..ttyC0, etc.) containing the PID
for the mgetty watching it in the /var/lock directory preventing pppd
from using the device. From the mgetty DOC's I expected mgetty to
remove the lock file after initialization if there is no activity on
the port, in practice this does not seem to be the case.
Does anyone have any ideas on what may be going on and how I might
resolve it?
Thank you for any assistance you can provide.
-Mark <brownm5@polaroid.com>