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 
19 namespace Instance {
20 
26 
29 void WriteOurPid();
30 
33 pid_t Other();
34 
41 SBuf NamePrefix(const char *head, const char *tail = nullptr);
42 
43 } // namespace Instance
44 
45 #endif /* SQUID_SRC_INSTANCE_H */
46 
Definition: SBuf.h:93
pid_t Other()
Definition: Instance.cc:129
void WriteOurPid()
creates a PID file; throws on error
Definition: Instance.cc:187
SBuf NamePrefix(const char *head, const char *tail=nullptr)
Definition: Instance.cc:253
code related to Squid Instance and PID file management
Definition: Instance.h:19
squidaio_request_t * head
Definition: aiops.cc:127
void ThrowIfAlreadyRunning()
Definition: Instance.cc:140

 

Introduction

Documentation

Support

Miscellaneous