/* */ #ifndef D_DAEMON_H #define D_DAEMON_H #include "common.h" namespace aria2 { // Detach the current process from terminal session and run in the // background. This function acts like daemon(3) standard function. // On success, this function returns 0. If an error occurs, it returns // -1. int daemon(int nochdir, int noclose); } // namespace aria2 #endif // D_DAEMON_H