You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pEpJSONServerAdapter/server/daemonize.hh

14 lines
350 B

#ifndef JSON_SERVER_ADAPTER_DAEMONIZE_HH
#define JSON_SERVER_ADAPTER_DAEMONIZE_HH
#include <cstdint>
#define STATUS_HANDLE "status-handle"
// fork(), go into background, close all ttys etc...
// system-specific! (POSIX, Windows, ...?)
void daemonize(const bool daemonize, const uintptr_t status_handle);
void daemonize_commit(int retval);
#endif