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>
This commit is contained in:
Olivier Brunel 2018-10-09 18:29:05 +02:00 committed by Andrew Gregory
parent 7afe51171f
commit d96d0ffe7c

View file

@ -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);
}