get the previous struct keep_sigact

This commit is contained in:
Daniel Stenberg 2001-11-07 12:56:13 +00:00
parent 2a0cde3041
commit 1a984ea847
1 changed files with 1 additions and 0 deletions

View File

@ -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! */