On Thu, 7 Oct 1999, Ed G. wrote:
> It seems diald is inadvertently closing the modem fd in run_shell
> before it starts chat. Function </color>run_shell closes closes file
> descriptors 0, 1 and 2 (STDIN, STDOUT and STDERR) and then
> creates new file descriptors for STDIN and STDOUT pointing to the
> modem.
Aha! That would be why I've never seen it. I invariably run
with a fifo control pipe, a TCP control, and usually at least
one dctrl connected. Plus the syslog fd of course.
It would be better to use the close on exec flag rather than
going to all this trouble anyway. In the meantime it should be
possible to fix it by looking in shell.c for the close(0), 1, 2
which is surrounded by #if 1 ... #endif and has a FIXME comment.
Change the #if 1 to #if 0 and I suspect it might work.
Mike
--
.----------------------------------------------------------------------.
| Mike Jagdis | Internet: [EMAIL PROTECTED] |
| 280, Silverdale Road, Earley, | Voice: +44 118 926 6996 |
| Reading RG6 7NU ENGLAND | Work: +44 118 989 0403 |
`----------------------------------------------------------------------'
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]