mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
d185596316
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)
14 lines
377 B
Plaintext
14 lines
377 B
Plaintext
*** ./execute_cmd.c.orig Wed Nov 17 18:37:45 1999
|
|
--- ./execute_cmd.c Wed Nov 17 18:37:53 1999
|
|
*************** execute_command_internal (command, async
|
|
*** 340,345 ****
|
|
--- 340,347 ----
|
|
{
|
|
int user_subshell, return_code, function_value;
|
|
|
|
+ reset_terminating_signals();
|
|
+
|
|
/* Cancel traps, in trap.c. */
|
|
restore_original_signals ();
|
|
if (asynchronous)
|