From 2c971f2fcf6c6322a0ea584b2af4c3cef20d3d63 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 27 May 2024 17:29:22 +0800 Subject: [PATCH] update dump_buf in logger.c --- project/socketd/booster/proc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/socketd/booster/proc.c b/project/socketd/booster/proc.c index d233d83..b55b202 100644 --- a/project/socketd/booster/proc.c +++ b/project/socketd/booster/proc.c @@ -161,7 +161,7 @@ if( check_daemon_running(pidfile) ) { - log_error("Program already running, process exit now"); + log_error("Program already running, process exit now\n"); return -1; } @@ -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