]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add IPC kid type for helper child processes
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 26 May 2013 04:12:20 +0000 (22:12 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 26 May 2013 04:12:20 +0000 (22:12 -0600)
src/ipc.cc
src/ipc/Kid.h

index e39e01ba595fe7cd59cfd8d9248b0e9d8e18adf9..f3c3982f845d0661212ef29a0fb9acb6bf1954d2 100644 (file)
@@ -36,6 +36,7 @@
 #include "fde.h"
 #include "globals.h"
 #include "ip/Address.h"
+#include "ipc/Kid.h"
 #include "SquidConfig.h"
 #include "SquidIpc.h"
 #include "tools.h"
@@ -310,6 +311,7 @@ ipcCreate(int type, const char *prog, const char *const args[], const char *name
     }
 
     /* child */
+    TheProcessKind = pkHelper;
     no_suid();                 /* give up extra priviliges */
 
     /* close shared socket with parent */
index 71a6ea5bae9cbd47313cb0d7e86c851fb7f51c09..98ee94d85ba362b8f9947c95494714a060b81b02 100644 (file)
@@ -90,6 +90,7 @@ typedef enum {
     pkCoordinator = 1, ///< manages all other kids
     pkWorker = 2, ///< general-purpose worker bee
     pkDisker = 4, ///< cache_dir manager
+    pkHelper = 8  ///< general-purpose helper child
 } ProcessKind;
 
 /// ProcessKind for the current process