mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
get the previous struct keep_sigact
This commit is contained in:
parent
2a0cde3041
commit
1a984ea847
@ -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! */
|
||||
|
Loading…
Reference in New Issue
Block a user