From 852b664e450b15bff3b9d05e6fefcee78b86335e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 1 Nov 2000 08:19:10 +0000 Subject: added signal in case sigaction is missing --- lib/url.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index 76b8f4e8d..492192ed0 100644 --- a/lib/url.c +++ b/lib/url.c @@ -726,6 +726,12 @@ CURLcode curl_connect(CURL *curl, CURLconnect **in_connect) sigact.sa_handler = alarmfunc; sigact.sa_flags &= ~SA_RESTART; sigaction(SIGALRM, &sigact, NULL); +#else + /* no sigaction(), revert to the much lamer signal() */ +#ifdef HAVE_SIGNAL + signal(SIGALRM, alarmfunc); +#endif + #endif /* Parse */ -- cgit v1.2.3