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

get the previous struct keep_sigact

parent 2a0cde30
No related branches found
No related tags found
No related merge requests found
......@@ -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! */
......
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