Skip to content

Commit

Permalink
removed accidentally added debug-code!
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Jun 11, 2002
1 parent 4fe2528 commit e9f1c12
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lib/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,10 @@ static unsigned int ConnectionStore(struct SessionHandle *data,
#define RETSIGTYPE void
#endif
static
RETSIGTYPE sigintfunc(int signal)
{
(void)signal; /* ignored */
return;
}
RETSIGTYPE alarmfunc(int signal)
{
/* this is for "-ansi -Wall -pedantic" to stop complaining! (rabe) */
(void)signal;
kill(getpid(), SIGINT);
return;
}
#endif
Expand Down Expand Up @@ -2261,16 +2255,6 @@ static CURLcode CreateConnection(struct SessionHandle *data,

#ifdef HAVE_SIGACTION
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);
keep_sigact = sigact;
keep_copysig = TRUE; /* yes, we have a copy */
Expand Down

0 comments on commit e9f1c12

Please sign in to comment.