mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:04:15 +03:00
get the previous struct keep_sigact
This commit is contained in:
parent
2a0cde3041
commit
1a984ea847
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue