[comp.soft-sys.andrew] ghost typescript problem

wjh+@ANDREW.CMU.EDU (Fred Hansen) (07/16/90)

When I started up a typescript it was connected to both the old one that
had just died.  Shortly thereafter the old shell died for sure and the
new typescript stopped working.  Here is the sequence of events:

a) running gdb in typescript/shell p1;  running the program being debugged
b) type control-X control-C into the typescript (by mistake)
	the typescript went away, but the window for the program did not
	(but the window with the program in it would not redraw)
c) selected New Typescript from the wm menu
d) the newtypescript was also p1 and shared the old shell
e) got a message  "(blocked waiting for tty input)" or some such
f) typed the "fg" command
	the useless window finally went away, and the typescript stopped working
g) brought up another typescript;  this one was p3 because the window
for p1 still existed
h) a ps in p3 showed that the p1 shell was gone, but that the p1
typescript still existed
	(indeed, the p1 typescript was still on the screen)

The problem seems to be that killing the typescript while gdb has a
subprocess does not allow the shell to die.  The next typescript created
uses that same shell, which dies as soon as the subprocess goes away
(with the next wait3()). 


Fred Hansen