From b74ad5954607d34e939f9cf32876bd7ba65998f9 Mon Sep 17 00:00:00 2001 From: Guo Wenxue <guowenxue@gmail.com> Date: Thu, 11 Apr 2024 13:08:05 +0800 Subject: [PATCH] Update socket example project --- project/socketd/booster/proc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/project/socketd/booster/proc.c b/project/socketd/booster/proc.c index 3fa8907..b55b202 100644 --- a/project/socketd/booster/proc.c +++ b/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) -- Gitblit v1.9.1