summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2021-03-01 21:26:24 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2021-03-01 21:26:24 +0100
commit8eccb902aa3be22a151943286fb376759a2b3585 (patch)
tree3bb4f1325f0abb3e23f513c7cb8bf25771297749
parent2f711f671cb1a082948116d4b8130db432549966 (diff)
RunScripts: Do not reset SIGQUIT and SIGINT to SIG_DFL
This caused python-apt to unset the Python signal handler when running update or install commands, breaking KeyboardInterrupt amongst possibly other things. We do not set those signal handlers in this functions, and the calling functions restore signal handlers to previous ones. LP: #1898026
-rw-r--r--apt-pkg/contrib/fileutl.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc
index 091def3d4..eb5dc859d 100644
--- a/apt-pkg/contrib/fileutl.cc
+++ b/apt-pkg/contrib/fileutl.cc
@@ -140,10 +140,6 @@ bool RunScripts(const char *Cnf)
return _error->Errno("waitpid","Couldn't wait for subprocess");
}
- // Restore sig int/quit
- signal(SIGQUIT,SIG_DFL);
- signal(SIGINT,SIG_DFL);
-
// Check for an error code.
if (WIFEXITED(Status) == 0 || WEXITSTATUS(Status) != 0)
{