From 9c902feeb80c9a17155b608ac915b90f1c65c815 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 18 Feb 2015 15:15:52 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=198 --- bash-4.3-sigrestart.patch | 4 +--- bash.changes | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bash-4.3-sigrestart.patch b/bash-4.3-sigrestart.patch index 68f2dfbc..01173fa9 100644 --- a/bash-4.3-sigrestart.patch +++ b/bash-4.3-sigrestart.patch @@ -1,11 +1,9 @@ --- sig.c +++ sig.c 2014-04-17 10:02:57.078235890 +0000 -@@ -722,10 +722,18 @@ set_signal_handler (sig, handler) +@@ -722,10 +722,16 @@ set_signal_handler (sig, handler) if (sig == SIGCHLD) act.sa_flags |= SA_RESTART; /* XXX */ #endif -+ if (sig != SIGALRM && handler != (termsig_sighandler)) -+ act.sa_flags |= SA_RESTART; /* XXX */ + if (handler == (trap_handler)) + act.sa_flags |= SA_NODEFER; /* XXX */ /* If we're installing a SIGTERM handler for interactive shells, we want diff --git a/bash.changes b/bash.changes index 4675e5d6..ed0b7d3f 100644 --- a/bash.changes +++ b/bash.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 18 15:14:47 UTC 2015 - werner@suse.de + +- Do not restart all signal handlers for bash 4.3 as this breaks + trap handler in subshells waotiug for a process + ------------------------------------------------------------------- Fri Jan 16 16:53:44 UTC 2015 - werner@suse.de