LIPH's C++ Codes
process.h File Reference
#include <sys/file.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <string>
#include "liph/format.h"
#include "liph/macros.h"

Go to the source code of this file.

Namespaces

namespace  liph
 

Macros

#define BD_NO_CHDIR   1
 
#define BD_NO_CLOSE_FILES   2
 
#define BD_NO_REOPEN_STD_FDS   4
 
#define BD_NO_UMASK0   8
 
#define BD_MAX_CLOSE   8192
 

Functions

void liph::err_exit (const char *str=nullptr)
 
void liph::err_exit (const std::string &str)
 
void liph::err_exit_if (bool error)
 
void liph::bzero (void *p, size_t n)
 
int liph::become_daemon (int flags)
 
bool liph::single_proc (const char *lock_file_path, bool exit)
 

Macro Definition Documentation

◆ BD_MAX_CLOSE

#define BD_MAX_CLOSE   8192

◆ BD_NO_CHDIR

#define BD_NO_CHDIR   1

◆ BD_NO_CLOSE_FILES

#define BD_NO_CLOSE_FILES   2

◆ BD_NO_REOPEN_STD_FDS

#define BD_NO_REOPEN_STD_FDS   4

◆ BD_NO_UMASK0

#define BD_NO_UMASK0   8