58 G_EXCEPTION( Error ,
tx(
"invalid pid file") )
100 static void create(
const Path & pid_file ) ;
105 bool m_committed {
false} ;
A Path object represents a file system path.
A class for creating pid files.
bool committed() const
Returns true if commit() has been called with a valid path().
void commit()
Creates the pid file if a path has been defined.
PidFile()
Default constructor.
~PidFile()
Destructor. Deletes the file.
void mkdir()
Creates the directory if it does not already exist.
Path path() const
Returns the full path of the file.
constexpr const char * tx(const char *p) noexcept
A briefer alternative to G::gettext_noop().