RaspberrPi project source code
Guo Wenxue
2024-07-07 75843d7e163f97fd42f96661863c1de664b08cc8
project/socketd/booster/proc.c
@@ -357,7 +357,7 @@
 * *****************************************************************************/
int set_daemon_running(const char *pid_file)
{
    daemonize(0, 1);
    daemon(0, 1);
    log_info("Program running as daemon [PID:%d].\n", getpid());
    if (record_daemon_pid(pid_file) < 0)