ipc.cc File Reference
#include "squid.h"
#include "comm/Connection.h"
#include "fd.h"
#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 <chrono>
#include <thread>
Include dependency graph for ipc.cc:

Go to the source code of this file.

Macros

#define HELLO_BUF_SZ   32
 
#define IPC_CHECK_FAIL(f, d, c)
 

Functions

static int ipcCloseAllFD (int prfd, int pwfd, int crfd, int cwfd)
 
static void PutEnvironment ()
 
pid_t ipcCreate (int type, const char *prog, const char *const args[], const char *name, Ip::Address &local_addr, int *rfd, int *wfd, void **hIpc)
 

Variables

static const char * hello_string = "hi there\n"
 
static char hello_buf [HELLO_BUF_SZ]
 

Macro Definition Documentation

◆ HELLO_BUF_SZ

#define HELLO_BUF_SZ   32

Definition at line 28 of file ipc.cc.

◆ IPC_CHECK_FAIL

#define IPC_CHECK_FAIL (   f,
  d,
 
)
Value:
if ((f) < 0) { \
debugs(54, DBG_CRITICAL, "ERROR: Failed to create helper " d " FD: " << c); \
return ipcCloseAllFD(prfd, pwfd, crfd, cwfd); \
} else void(0)
#define DBG_CRITICAL
Definition: Stream.h:37
static int ipcCloseAllFD(int prfd, int pwfd, int crfd, int cwfd)
Definition: ipc.cc:33

Function Documentation

◆ ipcCloseAllFD()

static int ipcCloseAllFD ( int  prfd,
int  pwfd,
int  crfd,
int  cwfd 
)
static

Definition at line 33 of file ipc.cc.

References comm_close.

Referenced by ipcCreate().

◆ ipcCreate()

◆ PutEnvironment()

static void PutEnvironment ( )
static

Definition at line 53 of file ipc.cc.

References Debug::debugOptions, and xcalloc().

Referenced by ipcCreate().

Variable Documentation

◆ hello_buf

char hello_buf[HELLO_BUF_SZ]
static

Definition at line 30 of file ipc.cc.

Referenced by ipcCreate().

◆ hello_string

const char* hello_string = "hi there\n"
static

Definition at line 26 of file ipc.cc.

Referenced by ipcCreate().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors