Can mgetty count rings and do something useful with it?

Roy Millar (rmill@Millstream.ednet.co.uk)
Sun, 13 Jun 1999 18:44:33 +0100


Gert Doering writes :-

> Interesting indeed.  I did not know that, but if it does this, and knows
> how to handle the "catches" (you have to reopen the port after someone
> logged off, due to all open FDs being invalidated after DCD drop), this

I'm no Unix or C expert, but I suspect that it does this; the code
includes the following, which seems to do a close and re-open :-


			/*
			 * XXX EIO may occur: port hung up by other process!
			 * Reopen it - danger: reopening failing continously
			 */
			close(modem);
			modem = modem_open(modem_file, TRUE);
			continue;
		}


-- 
Roy Millar,                                finger rmill@shell.ednet.co.uk or
rmill@Millstream.ednet.co.uk               access http://www.ednet.co.uk/~rmill
100044.14@CompuServe.com                   for PGP public key

"It is never difficult to distinguish between a Scotsman with a
grievance and a ray of sunshine."       -       P.G. Wodehouse