diff options
author | Brandon Bennett <bennetb@gmail.com> | 2017-09-15 15:40:23 -0600 |
---|---|---|
committer | Brandon Bennett <bennetb@gmail.com> | 2017-09-15 15:56:44 -0600 |
commit | 67ffd6694bf0e00f188b007284858c9bee51d770 (patch) | |
tree | aa9cecac0ee882c242e30ac8ec382f045f294171 | |
parent | d285299ce4d75f3b3e80d7672c9f715826371770 (diff) | |
download | chef-67ffd6694bf0e00f188b007284858c9bee51d770.tar.gz |
Don't catch SIGCHLD from dnf_helper.py
dnf_helper.py was configured to catch the SIGCHLD signal and quit if it
was received. In Fedora26 I have found that the fill_sack call in the
dnf python package may shell out causing a SIHCHLD call. This results
in no information as the helper just exits before finding a package.
This removes the helper restoring the default handling of SIGCHLD which
is to ingore it.
Obvious fix.
Fixes: 6393
Signed-off-by: Brandon Bennett <bbennett@fb.com>
-rw-r--r-- | lib/chef/provider/package/dnf/dnf_helper.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/chef/provider/package/dnf/dnf_helper.py b/lib/chef/provider/package/dnf/dnf_helper.py index ef08bb54c2..eb4d238f65 100644 --- a/lib/chef/provider/package/dnf/dnf_helper.py +++ b/lib/chef/provider/package/dnf/dnf_helper.py @@ -72,7 +72,6 @@ def exit_handler(signal, frame): signal.signal(signal.SIGINT, exit_handler) signal.signal(signal.SIGHUP, exit_handler) signal.signal(signal.SIGPIPE, exit_handler) -signal.signal(signal.SIGCHLD, exit_handler) while 1: # kill self if we get orphaned (tragic) |