From f7889e2ceddbc3e15ea4b5377d831f4432169f76 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Sat, 04 Jan 2025 16:26:42 +0800
Subject: [PATCH] Update iotd program configure file

---
 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