Squid Web Cache master
Loading...
Searching...
No Matches
Instance.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_SRC_INSTANCE_H
10#define SQUID_SRC_INSTANCE_H
11
12#include "sbuf/forward.h"
13
14#if HAVE_SYS_TYPES_H
15#include <sys/types.h>
16#endif
17
19namespace Instance {
20
26
29void WriteOurPid();
30
33pid_t Other();
34
41SBuf NamePrefix(const char *head, const char *tail = nullptr);
42
43} // namespace Instance
44
45#endif /* SQUID_SRC_INSTANCE_H */
46
squidaio_request_t * head
Definition aiops.cc:129
Definition SBuf.h:94
code related to Squid Instance and PID file management
Definition Instance.h:19
void WriteOurPid()
creates a PID file; throws on error
Definition Instance.cc:187
void ThrowIfAlreadyRunning()
Definition Instance.cc:140
pid_t Other()
Definition Instance.cc:129
SBuf NamePrefix(const char *head, const char *tail=nullptr)
Definition Instance.cc:253