]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
re-enable signal catching while sleeping during child restarts
authorwessels <>
Tue, 11 Nov 1997 03:52:57 +0000 (03:52 +0000)
committerwessels <>
Tue, 11 Nov 1997 03:52:57 +0000 (03:52 +0000)
src/main.cc

index bfbbdf06ff3334e1f0a09462cf3044155bc6db81..037ce31f3bf8f5f59e93cc1260ab280a3d1f4efe 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.189 1997/11/05 00:39:55 wessels Exp $
+ * $Id: main.cc,v 1.190 1997/11/10 20:52:57 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -754,8 +754,8 @@ watch_child(char *argv[])
        }
        /* parent */
        time(&start);
-       squid_signal(SIGINT, SIG_IGN, SA_RESTART);
        do {
+           squid_signal(SIGINT, SIG_IGN, SA_RESTART);
 #ifdef _SQUID_NEXT_
            pid = wait3(&status, 0, NULL);
 #else
@@ -772,6 +772,7 @@ watch_child(char *argv[])
        if (WIFEXITED(status))
            if (WEXITSTATUS(status) == 0)
                exit(0);
+       squid_signal(SIGINT, SIG_DFL, SA_RESTART);
        sleep(3);
     }
     /* NOTREACHED */