Toolbox snapshot
The Reactive C++ Toolbox
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
PidFile.hpp File Reference
#include <toolbox/Config.h>
#include <memory>
Include dependency graph for PidFile.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  toolbox::sys::detail::PidFileDeleter
 

Namespaces

namespace  toolbox
 
namespace  toolbox::sys
 
namespace  toolbox::sys::detail
 

Typedefs

using toolbox::sys::PidFile = std::unique_ptr< pidfh, detail::PidFileDeleter >
 

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.