Strange SUN behaviour.
Richard Tobin
richard at aiai.ed.ac.uk
Wed Oct 11 02:22:55 AEST 1989
In article <703 at hrc63.uucp> paj at hrc63.uucp (Mr P Johnson "Baddow") writes:
>This package plays
>tricks with the stack and also does some signal management for non-blocking
>I/O.
>When one of these programs is killed by a signal (even kill -9), the shell
>it is running in dies as well.
Sounds like the terminal is being left in non-blocking i/o mode - this
will cause reads by the shell to return EWOULDBLOCK.
You could put a wrapper round the program that resets the tty to blocking
i/o mode if it's killed; it just needs to do something like
fcntl(open("/dev/tty"), F_SETFL, 0);
-- Richard
--
Richard Tobin, JANET: R.Tobin at uk.ac.ed
AI Applications Institute, ARPA: R.Tobin%uk.ac.ed at nsfnet-relay.ac.uk
Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin
More information about the Comp.unix.wizards
mailing list