diff options
author | Michael Vogt <mvo@debian.org> | 2014-04-28 13:41:33 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-04-28 13:41:33 +0200 |
commit | 3163087b04ca5c297a7c98c018ba5c30e850a11e (patch) | |
tree | b9c2484a5af75bbdf0c96b56fd724f9e81a6897d /apt-private/private-main.cc | |
parent | a6f22547948f1f998c754850c9ddeb3cba784873 (diff) |
Fix missing ScreenWidth check in apt.cc
Diffstat (limited to 'apt-private/private-main.cc')
-rw-r--r-- | apt-private/private-main.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-private/private-main.cc b/apt-private/private-main.cc index 2d3965172..668b1733a 100644 --- a/apt-private/private-main.cc +++ b/apt-private/private-main.cc @@ -8,9 +8,18 @@ #include <iostream> #include <string.h> #include <unistd.h> +#include <signal.h> #include <apti18n.h> + +void InitSignals() +{ + // Setup the signals + signal(SIGPIPE,SIG_IGN); +} + + void CheckSimulateMode(CommandLine &CmdL) { // simulate user-friendly if apt-get has no root privileges |