diff options
author | Olivier Brunel <jjk@jjacky.com> | 2018-10-09 18:29:05 +0200 |
---|---|---|
committer | Andrew Gregory <andrew@archlinux.org> | 2018-11-19 02:25:18 +0100 |
commit | cad8fe2fbfc3a63554a2537ea7b5627a71453075 (patch) | |
tree | 92028d739a5ffa0d85ac592bd745568fd92526eb | |
parent | 0dbb94538770d2ffce3709b5854d1e5e44cfc183 (diff) | |
download | pacman-cad8fe2fbfc3a63554a2537ea7b5627a71453075.tar.gz pacman-cad8fe2fbfc3a63554a2537ea7b5627a71453075.tar.xz |
alpm: Do not raise SIGINT when filesize goes over limit
Variable dload_interrupted is used both to abort a download because
SIGINT was caught, and when a file limit is reached. But raising SIGINT
is only meant to happen in the first case.
Signed-off-by: Olivier Brunel <jjk@jjacky.com>
(cherry picked from commit d96d0ffe7c88d9521a9e6cdd65939e9a20733cdf)
-rw-r--r-- | lib/libalpm/dload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index cca39470..00993910 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -585,7 +585,7 @@ cleanup: unmask_signal(SIGINT, &orig_sig_int); unmask_signal(SIGPIPE, &orig_sig_pipe); /* if we were interrupted, trip the old handler */ - if(dload_interrupted) { + if(dload_interrupted == ABORT_SIGINT) { raise(SIGINT); } |