[comp.mail.mush] signals

fletcher@cs.utexas.edu (Fletcher Mattox) (12/15/90)

When mush receives a SIGTSTP followed by any other signal, it
blocks trying to write something (the prompt?) to the tty.  After
the second signal is received, it is in a hopelessy confused
state and seems to ignore all signals.  Especially SIGHUP.

Like this:

	% mush -f mailbox
	Mail User's Shell (7.1.2 7/11/90): Type '?' for help.
	"mailbox": 0 messages, 0 new, 0 unread
	Msg 0 of 0: stop

	Stopped
	% jobs -l
	[1]  +  8896 Stopped              mush -f mailbox
	% kill -HUP 8896
	% jobs -l
	[1]  +  8896 Stopped (tty output) mush -f mailbox
	% 

At this point, mush will only die upon receipt of SIGKILL.

It has become very important to me to get mush to honor a
SIGHUP while suspended.  I suspect I can force the issue
by turning on ECHO_FLAG in stop_start(), but I would be
very grateful for a better solution.  Thanks.

schaefer@ogicse.ogi.edu (Barton E. Schaefer) (12/19/90)

In article <15847@cs.utexas.edu> fletcher@cs.utexas.edu (Fletcher Mattox) writes:
} When mush receives a SIGTSTP followed by any other signal, it
} blocks trying to write something (the prompt?) to the tty.  After
} the second signal is received, it is in a hopelessy confused
} state and seems to ignore all signals.  Especially SIGHUP.

Remove the print() calls in catch() (signals.c) that try to print the
signal name from sys_siglist[].  That should do it.
-- 
Bart Schaefer						schaefer@cse.ogi.edu
ZipCode Software Corporation				schaefer@zipcode.com