1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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

need it
This commit is contained in:
Daniel Stenberg 2000-12-07 09:09:26 +00:00
parent dad2317e6e
commit 69abefc936

View File

@ -723,7 +723,10 @@ static CURLcode _connect(CURL *curl, CURLconnect **in_connect)
#ifdef HAVE_SIGACTION #ifdef HAVE_SIGACTION
sigaction(SIGALRM, NULL, &sigact); sigaction(SIGALRM, NULL, &sigact);
sigact.sa_handler = alarmfunc; sigact.sa_handler = alarmfunc;
#ifdef SA_RESTART
/* HPUX doesn't have SA_RESTART but defaults to that behaviour! */
sigact.sa_flags &= ~SA_RESTART; sigact.sa_flags &= ~SA_RESTART;
#endif
sigaction(SIGALRM, &sigact, NULL); sigaction(SIGALRM, &sigact, NULL);
#else #else
/* no sigaction(), revert to the much lamer signal() */ /* no sigaction(), revert to the much lamer signal() */