I'm sorry if the question I'm about to ask was already answered a hundred times,
but I couldn't find it in any FAQ.
I'm using RedHat Colgate, kernel 2.0.18, and I'm using pppd and IP-masquerading
to allow two other machines (WIN95 :-( ) to access the ISP. Everything works
fine, except for a small problem:
Sometimes, as when pppd gives up on a connection because the ISP is misbehaving
so that chat can't establish the connection , the modem stays connected after
the pppd process dies.
This is a major worry because the two WIN95 machines are far away from the
modem, so the user doesn't know if the modem is still connected. It could,
conceivably, stay connected all night long without anyone noticing.
Even when I notice the problem, it's not been easy to solve, even on the main
Linux box. I usually try minicom, and after a few resets, +++ ATH and such I
get the modem to disconnect.
Note than the modem is disconnecting properly when pppd gets a SIGINT, so I
think the cable and the modem setup are ok.
What I need is to know is there is some program that forces the modem to
hangup, immediately and always.
I also could do with some programming info on that subject, if someone pointed
the rigth ioctls, I could probably write that program myself.
Thank you all for your attention.