freebsd-ports/shells/bash1/files/patch-ak
David E. O'Brien d185596316 Bash1 incorrectly restores signals when executing programs. This causes
many programs to use 100% CPU after a login session was ungracefully
closed because SIGHUP will not be delivered to processes started from bash1
used as login shell (SIGHUP is ignored when bash1 is running as login shell
and telnet connection is made because ignored SIGHUP is inherited
from inetd->telnetd->getty->login; ignored SIGHUP is restored before
starting any program from shell).

These patches were derived from Bash 2.03, and attempt to impliement
the Bash 2.03 behavior.

PR:		14943
Submitted by:	Max Khon (fjoe@iclub.nsu.ru)
1999-11-28 03:07:19 +00:00

14 lines
315 B
Plaintext

*** ./trap.c.orig Wed Nov 17 18:36:19 1999
--- ./trap.c Wed Nov 17 18:36:29 1999
*************** restore_original_signals ()
*** 556,563 ****
{
register int i;
- reset_terminating_signals (); /* in shell.c */
-
if (sigmodes[0] & SIG_TRAPPED)
{
free_trap_command (0);
--- 556,561 ----