mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:54:17 +03:00
only use siginterrupt() if it really exists on the platform
This commit is contained in:
parent
02437b2d51
commit
41535eaea9
1 changed files with 2 additions and 0 deletions
|
|
@ -537,6 +537,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
#ifdef HAVE_SIGNAL
|
||||
signal(SIGPIPE, sigpipe_handler);
|
||||
#endif
|
||||
#ifdef HAVE_SIGINTERRUPT
|
||||
siginterrupt(SIGPIPE, 1);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue