mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
removed accidentally added debug-code!
This commit is contained in:
parent
4fe252847c
commit
e9f1c12f0f
16
lib/url.c
16
lib/url.c
@ -139,16 +139,10 @@ static unsigned int ConnectionStore(struct SessionHandle *data,
|
|||||||
#define RETSIGTYPE void
|
#define RETSIGTYPE void
|
||||||
#endif
|
#endif
|
||||||
static
|
static
|
||||||
RETSIGTYPE sigintfunc(int signal)
|
|
||||||
{
|
|
||||||
(void)signal; /* ignored */
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
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;
|
||||||
kill(getpid(), SIGINT);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -2261,16 +2255,6 @@ static CURLcode CreateConnection(struct SessionHandle *data,
|
|||||||
|
|
||||||
#ifdef HAVE_SIGACTION
|
#ifdef HAVE_SIGACTION
|
||||||
struct sigaction sigact;
|
struct sigaction sigact;
|
||||||
sigaction(SIGINT, NULL, &sigact);
|
|
||||||
keep_sigact = sigact;
|
|
||||||
sigact.sa_handler = sigintfunc;
|
|
||||||
#ifdef SA_RESTART
|
|
||||||
/* HPUX doesn't have SA_RESTART but defaults to that behaviour! */
|
|
||||||
sigact.sa_flags &= ~SA_RESTART;
|
|
||||||
#endif
|
|
||||||
/* now set the new struct */
|
|
||||||
sigaction(SIGINT, &sigact, NULL);
|
|
||||||
|
|
||||||
sigaction(SIGALRM, NULL, &sigact);
|
sigaction(SIGALRM, NULL, &sigact);
|
||||||
keep_sigact = sigact;
|
keep_sigact = sigact;
|
||||||
keep_copysig = TRUE; /* yes, we have a copy */
|
keep_copysig = TRUE; /* yes, we have a copy */
|
||||||
|
Loading…
Reference in New Issue
Block a user