#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>
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
◆ IPC_CHECK_FAIL
| #define IPC_CHECK_FAIL | ( | f, | |
| d, | |||
| c | |||
| ) |
Function Documentation
◆ ipcCloseAllFD()
◆ 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 | ||
| ) |
Definition at line 65 of file ipc.cc.
References assert, comm_close, comm_connect_addr(), Comm::COMM_ERROR, COMM_NOCLOEXEC, comm_open(), comm_open_listener(), comm_udp_recv(), comm_udp_send(), commSetNonBlocking(), commUnsetFdTimeout(), Config, DBG_CRITICAL, DBG_IMPORTANT, debug_log, debugs, fd_open(), FD_PIPE, fd_table, Ip::Address::FreeAddr(), hello_buf, hello_string, hIpc, Ip::Address::InitAddr(), IPC_CHECK_FAIL, IPC_FIFO, IPC_NONE, IPC_TCP_SOCKET, IPC_UDP_SOCKET, IPC_UNIX_DGRAM, IPC_UNIX_STREAM, ipcCloseAllFD(), logsFlush(), no_suid(), opt_no_daemon, pid, pkHelper, PutEnvironment(), ResyncDebugLog(), rfc1738_escape, SquidConfig::sleep_after_fork, TheProcessKind, and xstrerr().
Referenced by DiskdIOStrategy::init(), logfile_mod_daemon_open(), IcmpSquid::Open(), Helper::Client::openSessions(), statefulhelper::openSessions(), and unlinkdInit().
◆ PutEnvironment()
|
static |
Definition at line 53 of file ipc.cc.
References Debug::debugOptions, and xcalloc().
Referenced by ipcCreate().
Variable Documentation
◆ hello_buf
|
static |
Definition at line 30 of file ipc.cc.
Referenced by ipcCreate().
◆ hello_string
|
static |
Definition at line 26 of file ipc.cc.
Referenced by ipcCreate().
