Brain-dead jobs hangin' around, and other grusome subjects...

Dave Ciemiewicz ciemo at bananapc.wpd.sgi.com
Wed Nov 14 05:02:38 AEST 1990


In article <1990Nov12.145601.23556 at cunixf.cc.columbia.edu>, shenkin at cunixf.cc.columbia.edu (Peter S. Shenkin) writes:
|> 
|> Occasional invocations of "ps -ef" on a Personal Iris (25TG) running
|> 3.2.1 have revealed dead jobs haunting the system.  Most of these
|> seem to be residues of running the "man" command, often several days/
|> logins ago.  Since man sets up a pipe, each invocation that hangs around
|> keeps three or four jobs on the list;  however, this does not happen for
|> every invocation of "man".  Does anyone out there have an idea how this 
|> can be prevented?
|> 

There was a race condition in the 3.2 man command itself with respect to the
shell.  When 3.2 man is interrupted using ^C aka ctrl-C (or whatever your
interrupt character is set to), 3.2 man does not properly wait on its
children thus the orphans.

This bug is fixed in the 3.3 software release.  The solution is to upgrade
your release.  The interrim solution is to train yourself not to quit viewing
a man page by typing ^C but instead to press "q" to quit more(1) from paging
anymore of your man page.  As you noted, interrupting 3.2 man with ^C won't
always cause this, only sometimes which made the race condition elusive to
find.

						--- Ciemo



More information about the Comp.sys.sgi mailing list