From: Daniel Stenberg Date: Wed, 7 Nov 2001 12:56:13 +0000 (+0000) Subject: get the previous struct keep_sigact X-Git-Tag: curl-7_9_2~115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a984ea84771a85df08f6a97e7cbac3ce379743e;p=thirdparty%2Fcurl.git get the previous struct keep_sigact --- diff --git a/lib/url.c b/lib/url.c index 5810e859b7..31e1459ca7 100644 --- a/lib/url.c +++ b/lib/url.c @@ -1930,6 +1930,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, #ifdef HAVE_SIGACTION struct sigaction sigact; sigaction(SIGALRM, NULL, &sigact); + keep_sigact = sigact; sigact.sa_handler = alarmfunc; #ifdef SA_RESTART /* HPUX doesn't have SA_RESTART but defaults to that behaviour! */