Skip to content
Snippets Groups Projects
Commit 69abefc9 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Added SA_RESTART since (some) HPUX doesn't have that define and it doesn't

need it
parent dad2317e
No related branches found
No related tags found
No related merge requests found
......@@ -723,7 +723,10 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
#ifdef HAVE_SIGACTION
sigaction(SIGALRM, NULL, &sigact);
sigact.sa_handler = alarmfunc;
#ifdef SA_RESTART
/* HPUX doesn't have SA_RESTART but defaults to that behaviour! */
sigact.sa_flags &= ~SA_RESTART;
#endif
sigaction(SIGALRM, &sigact, NULL);
#else
/* no sigaction(), revert to the much lamer signal() */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment