summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2018-10-09 18:29:05 +0200
committerAndrew Gregory <andrew@archlinux.org>2018-11-19 02:25:18 +0100
commitcad8fe2fbfc3a63554a2537ea7b5627a71453075 (patch)
tree92028d739a5ffa0d85ac592bd745568fd92526eb /lib
parent0dbb94538770d2ffce3709b5854d1e5e44cfc183 (diff)
downloadpacman-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)
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/dload.c2
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);
}