mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
corrected the signal handler
This commit is contained in:
parent
be35b3ad03
commit
85e2e96fb6
@ -143,13 +143,13 @@ static unsigned int ConnectionStore(struct SessionHandle *data,
|
|||||||
#ifndef RETSIGTYPE
|
#ifndef RETSIGTYPE
|
||||||
#define RETSIGTYPE void
|
#define RETSIGTYPE void
|
||||||
#endif
|
#endif
|
||||||
|
extern sigjmp_buf curl_jmpenv;
|
||||||
static
|
static
|
||||||
RETSIGTYPE alarmfunc(int signal)
|
RETSIGTYPE alarmfunc(int signal)
|
||||||
{
|
{
|
||||||
/* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
|
/* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
|
||||||
(void)signal;
|
(void)signal;
|
||||||
#ifdef HAVE_SIGSETJMP
|
#ifdef HAVE_SIGSETJMP
|
||||||
extern sigjmp_buf curl_jmpenv;
|
|
||||||
siglongjmp(curl_jmpenv, 1);
|
siglongjmp(curl_jmpenv, 1);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user