vgetty file locking
Gert Doering (gert@greenie.muc.de)
Mon, 6 Apr 1998 08:54:02 +0200
Hi,
Francesco L. wrote:
> I run vgetty from inittab in this way:
> S1:2345:respawn:/usr/local/sbin/vgetty -s 38400 modem
>
> modem is a symlink to /dev/ttyS1.
Don't do this.
> The problem is that I don't see any lockfile for the modem line in /var/lock/
>
> Furthermore if the line is already used by another process (ie pppd which
> always creates /var/lock/LCK..modem) vgetty doesn't care about this and it
> takes control of the line..
IFF both programs use /dev/modem AND both programs write their lock file
into /var/lock/LCK..*, they should properly interact.
If you have compiled mgetty/vgetty to use /usr/spool/uucp/LCK..* or
wherever, they will collide. Look into the debug log file to see what
file vgetty uses.
gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany gert@greenie.muc.de
fax: +49-89-35655025 gert.doering@physik.tu-muenchen.de