Guo Wenxue
2022-09-21 fbbb2d0b2aba4ddc42651096b20dd4a7ca4a33f2
apue/project_socket/src/util_proc.c
@@ -356,7 +356,7 @@
 * *****************************************************************************/
int set_daemon_running(const char *pid_file)
{
    daemonize(0, 1);
    daemon(1, 1);
    log_info("Program running as daemon [PID:%d].\n", getpid());
    if (record_daemon_pid(pid_file) < 0)