From ed1a15195d3f0dd06ce09448e6ce9989b6f11d1a Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 25 May 2013 22:12:20 -0600 Subject: [PATCH] Add IPC kid type for helper child processes --- src/ipc.cc | 2 ++ src/ipc/Kid.h | 1 + 2 files changed, 3 insertions(+) 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 -- 2.47.2