mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-09 04:57:59 -05:00
Update SIGPIPE signal handler comment
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
13a1d5883c
commit
6c78f0d560
@ -436,8 +436,8 @@ static int curl_download_internal(struct dload_payload *payload,
|
|||||||
|
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, localf);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, localf);
|
||||||
|
|
||||||
/* ignore any SIGPIPE signals- these may occur if our FTP socket dies or
|
/* Ignore any SIGPIPE signals. With libcurl, these shouldn't be happening,
|
||||||
* something along those lines. Store the old signal handler first. */
|
* but better safe than sorry. Store the old signal handler first. */
|
||||||
mask_signal(SIGPIPE, SIG_IGN, &orig_sig_pipe);
|
mask_signal(SIGPIPE, SIG_IGN, &orig_sig_pipe);
|
||||||
mask_signal(SIGINT, &inthandler, &orig_sig_int);
|
mask_signal(SIGINT, &inthandler, &orig_sig_int);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user