Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Namespaces | Functions
PidFile.cpp File Reference
#include "PidFile.hpp"
#include "Error.hpp"
#include <toolbox/util/String.hpp>
#include <toolbox/contrib/flopen.c>
#include <toolbox/contrib/pidfile.c>
Include dependency graph for PidFile.cpp:

Go to the source code of this file.

Namespaces

namespace  toolbox
 
namespace  toolbox::sys
 

Functions

PidFile toolbox::sys::open_pid_file (const char *path, mode_t mode)
 
void toolbox::sys::close_pid_file (PidFile &pf) noexcept
 Close pidfile without removing it. This function should be used when forking daemon processes.
 
void toolbox::sys::write_pid_file (PidFile &pf)
 Write process' PID into pidfile.