From 69b42a43ca4b2d93be203c34f6b45f5de1e32a15 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Thu, 11 Apr 2024 13:13:15 +0800 Subject: [PATCH] Fix logger.c bug --- 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