🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.sys5
Article #106

signals - tty line discipline

#106
From: Allan Statham
Date: Wed, 20 Sep 1989 14:25
16 lines
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
Technical Details
Message-ID: <56@masalla.fulcrum.bt.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!axion!fulcrum!masalla!bilbo

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!axion!fulcrum!masalla!bilbo
From: bilbo@fulcrum.bt.co.uk (Allan Statham)
Newsgroups: comp.bugs.sys5,comp.unix.wizards
Subject: signals - tty line discipline
Message-ID: <56@masalla.fulcrum.bt.co.uk>
Date: 20 Sep 89 14:25:30 GMT
Reply-To: bilbo@fulcrum.bt.co.uk (Allan Statham)
Organization: BT Fulcrum, Birmingham, England
Lines: 16