/* */ #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_