[1442] in Athena Bugs

home help back first fref pref prev next nref lref last post

My previos report about xterm -C and lingering processes

daemon@ATHENA.MIT.EDU (qjb@ATHENA.MIT.EDU)
Tue Nov 29 18:16:11 1988

From: <qjb@ATHENA.MIT.EDU>
Date: Tue, 29 Nov 88 16:38:02 EST
To: bugs@ATHENA.MIT.EDU
Cc: qjb@ATHENA.MIT.EDU
System type, version:	(RT/PC) Version 6.0R; maybe vax too.


I verified that my previous suspition was correct by writing a script:

#!/bin/csh -f
while (! -e /tmp/a)
   sleep 5
end
echo "Done"


and running it as testuser: /usr/tmp/script &
and then logging out.  When the workstation deactivated, the cursor
sat at the bottom of the screen with no messages printed as described.
The fix is simple:  add this line

    ioctl(1, TIOCCONS, 0);

to the end of cooked_mode() in toehold.c.  I think it only needs to be
added here, but it wouldn't hurt to add it to raw_mode() too, I
suppose. 

I built a version of toehold with this change (line added to both
places) and installed it temporarily on a public workstation.  It did
indeed solve the problem.  Since we can't conveniently fix the more
fundamental problem of lingering processes, perhaps this fix could
make it into 6.1?  Since xterm -C for a login xterm has worked, I have
seen this problem every day in the public clusters.

                                Jay Berkenbilt
                                watchmaker


P.S.  This is what I was doing instead of my schoolwork.  Oh well.

home help back first fref pref prev next nref lref last post