]> git.pld-linux.org Git - packages/squid.git/commitdiff
a1ad2ff574a0d0973af36a10e0333cab squid-2.4.stable1-kill_parent_on_child_sigkill...
authormkochano <mkochano@pld-linux.org>
Sun, 22 Apr 2001 21:46:41 +0000 (21:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    squid-2.4.stable1-kill_parent_on_child_sigkill.patch -> 1.1

squid-2.4.stable1-kill_parent_on_child_sigkill.patch [new file with mode: 0644]

diff --git a/squid-2.4.stable1-kill_parent_on_child_sigkill.patch b/squid-2.4.stable1-kill_parent_on_child_sigkill.patch
new file mode 100644 (file)
index 0000000..a8b5993
--- /dev/null
@@ -0,0 +1,26 @@
+Index: src/main.c
+===================================================================
+RCS file: /server/cvs-server/squid/squid/src/main.c,v
+retrieving revision 1.322.2.3
+retrieving revision 1.322.2.4
+diff -c -r1.322.2.3 -r1.322.2.4
+*** src/main.c 2001/01/12 00:51:50     1.322.2.3
+--- src/main.c 2001/03/28 23:25:51     1.322.2.4
+***************
+*** 909,914 ****
+--- 909,923 ----
+       if (WIFEXITED(status))
+           if (WEXITSTATUS(status) == 0)
+               exit(0);
++      if (WIFSIGNALED(status)) {
++          switch (WTERMSIG(status)) {
++          case SIGKILL:
++              exit(0);
++              break;
++          default:
++              break;
++          }
++      }
+       squid_signal(SIGINT, SIG_DFL, SA_RESTART);
+       sleep(3);
+      }
This page took 0.075236 seconds and 4 git commands to generate.