From: Amos Jeffries Date: Sun, 26 May 2013 04:12:20 +0000 (-0600) Subject: Add IPC kid type for helper child processes X-Git-Tag: SQUID_3_4_0_1~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed1a15195d3f0dd06ce09448e6ce9989b6f11d1a;p=thirdparty%2Fsquid.git Add IPC kid type for helper child processes --- diff --git a/src/ipc.cc b/src/ipc.cc index e39e01ba59..f3c3982f84 100644 --- a/src/ipc.cc +++ b/src/ipc.cc @@ -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 */ diff --git a/src/ipc/Kid.h b/src/ipc/Kid.h index 71a6ea5bae..98ee94d85b 100644 --- a/src/ipc/Kid.h +++ b/src/ipc/Kid.h @@ -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