Thread View: comp.bugs.sys5
1 messages
1 total messages
Started by Allan Statham
Wed, 20 Sep 1989 14:25
signals - tty line discipline
Author: Allan Statham
Date: Wed, 20 Sep 1989 14:25
Date: Wed, 20 Sep 1989 14:25
16 lines
1309 bytes
1309 bytes
----- News saved at 20 Sep 89 10:56:35 GMT I have recently discovered a problem related to tty device driver signals e.g SIGHUP , not being passed back to the controlling process. This situation occurs when a process opens,closes and re-opens a tty device using the same common line discipline code. Setpgrp() is performed before each open. The problem is due to the statements:- u.u_ttyp = &tp->t_pgrp; tp->t_pgrp = pp->p_pgrp; in the line discipline ttyopen() routine not being executed. This is caused by the fact that u.u_ttyp is not NULL on the 2nd and subsequent opens of any tty device using the same common line discipline code. A possible solution to this problem would be to insure that u.u_ttyp is set to NULL in the ttclose() routine before exiting. Could anyone who has any thoughts on this problem please mail me on: bilbo@fulcrum.bt.co.uk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads