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 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

#define HELLO_BUF_SZ   32

Definition at line 25 of file ipc.cc.

#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: Debug.h:44
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Debug.h:123
static int ipcCloseAllFD(int prfd, int pwfd, int crfd, int cwfd)
Definition: ipc.cc:30

Referenced by ipcCreate().

Function Documentation

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

Definition at line 30 of file ipc.cc.

References comm_close.

Referenced by ipcCreate().

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 
)
static void PutEnvironment ( )
static

Definition at line 50 of file ipc.cc.

References Debug::debugOptions, and xcalloc.

Referenced by ipcCreate().

Variable Documentation

char hello_buf[HELLO_BUF_SZ]
static

Definition at line 27 of file ipc.cc.

Referenced by ipcCreate().

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

Definition at line 23 of file ipc.cc.

Referenced by ipcCreate().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors