#include "fde.h"
#include "globals.h"
#include "ip/Address.h"
+#include "ipc/Kid.h"
+#include "rfc1738.h"
#include "SquidConfig.h"
#include "SquidIpc.h"
#include "tools.h"
-#include "rfc1738.h"
static const char *hello_string = "hi there\n";
#define HELLO_BUF_SZ 32
debugs(54, 3, "ipcCreate: cwfd FD " << cwfd);
if (type == IPC_TCP_SOCKET || type == IPC_UDP_SOCKET) {
- PaS.InitAddrInfo(AI);
+ Ip::Address::InitAddrInfo(AI);
if (getsockname(pwfd, AI->ai_addr, &AI->ai_addrlen) < 0) {
- PaS.FreeAddrInfo(AI);
+ Ip::Address::FreeAddrInfo(AI);
debugs(54, DBG_CRITICAL, "ipcCreate: getsockname: " << xstrerror());
return ipcCloseAllFD(prfd, pwfd, crfd, cwfd);
}
debugs(54, 3, "ipcCreate: FD " << pwfd << " sockaddr " << PaS);
- PaS.FreeAddrInfo(AI);
+ Ip::Address::FreeAddrInfo(AI);
- ChS.InitAddrInfo(AI);
+ Ip::Address::InitAddrInfo(AI);
if (getsockname(crfd, AI->ai_addr, &AI->ai_addrlen) < 0) {
- ChS.FreeAddrInfo(AI);
+ Ip::Address::FreeAddrInfo(AI);
debugs(54, DBG_CRITICAL, "ipcCreate: getsockname: " << xstrerror());
return ipcCloseAllFD(prfd, pwfd, crfd, cwfd);
}
ChS = *AI;
- ChS.FreeAddrInfo(AI);
+ Ip::Address::FreeAddrInfo(AI);
debugs(54, 3, "ipcCreate: FD " << crfd << " sockaddr " << ChS );
}
/* child */
+ TheProcessKind = pkHelper;
no_suid(); /* give up extra priviliges */
/* close shared socket with parent */