aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-11 14:10:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-11 14:10:32 +0000
commite9f1c12f0f4791978afdea358d67dbe3a096cd21 (patch)
tree4608d147b9a772e464726565940e143db5dff2b8
parent4fe252847cfce391ccd83df097ff6c5dddc34754 (diff)
removed accidentally added debug-code!
-rw-r--r--lib/url.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/url.c b/lib/url.c
index dd55d861d..fc4529c8e 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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
@@ -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 */