Discussion:
mgetty and locks
(too old to reply)
Okan Demirmen
2005-12-09 14:04:25 UTC
Permalink
hi all -

so i understand the issue with mgetty complaining loudly if the modem is
either turned off or missing. so if one has mgetty listening without the
modem, it will forever try to talk to it.

ok, but the issue i'm having is that when i send a kill signal to
mgetty, it never releases its lock(s) and this becomes a problem while
trying to reboot/shutdown - actually, it's the umount'ing bit that
hurts. it doesn't matter if init sends the signal or one does so
manually, mgetty doesn't really go away. at most, it will go into IE
(idle and trying to exit). the only way to get it to die (even after
sending kill signals) is to breify turn on the modem.

is there something i'm missing here?

for the record, this is mgetty 1.1.34 on openbsd -current (and 3.8) with
an external courier v.everything modem.

thanks,
okan

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Gert Doering
2005-12-09 14:15:10 UTC
Permalink
Hi,
Post by Okan Demirmen
ok, but the issue i'm having is that when i send a kill signal to
mgetty, it never releases its lock(s) and this becomes a problem while
This is to be expected - if you kill the process, it has no way to actually
*do* anything before being killed.

Even so, the mere existance of the file (with no process accessing it)
should not do harm.
Post by Okan Demirmen
trying to reboot/shutdown - actually, it's the umount'ing bit that
hurts. it doesn't matter if init sends the signal or one does so
manually, mgetty doesn't really go away.
The point is that mgetty is restarted immediately, so mgetty will
very nicely go away, and then init will restart mgetty.

If you claim otherwise (mgetty not being restarted after kill), please
demonstrate with log file.
Post by Okan Demirmen
at most, it will go into IE
(idle and trying to exit). the only way to get it to die (even after
sending kill signals) is to breify turn on the modem.
is there something i'm missing here?
"mgetty is not designed for people that turn off modems or computers"
(and this is not easily changed).

gert
--
USENET is *not* the non-clickable part of WWW!
//www.muc.de/~gert/
Gert Doering - Munich, Germany ***@greenie.muc.de
fax: +49-89-35655025 ***@net.informatik.tu-muenchen.de

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...