From 24345339421493cdacdbaae0248c3928ea9404c2 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Tue, 18 Nov 2025 12:41:40 +0800
Subject: [PATCH] update proc.h and utils.h

---
 project/booster/proc.c |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/project/booster/util_proc.c b/project/booster/proc.c
similarity index 98%
rename from project/booster/util_proc.c
rename to project/booster/proc.c
index 1a3d127..6cb2109 100644
--- a/project/booster/util_proc.c
+++ b/project/booster/proc.c
@@ -2,8 +2,8 @@
  *      Copyright:  (C) 2020 LingYun IoT System Studio
  *                  All rights reserved.
  *
- *       Filename:  util_proc.c
- *    Description:  This file is the process API
+ *       Filename:  proc.c
+ *    Description:  This file is the process/thread API
  *
  *        Version:  1.0.0(7/06/2020)
  *         Author:  Guo Wenxue <guowenxue@gmail.com>
@@ -22,7 +22,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
-#include "util_proc.h"
+#include "proc.h"
 #include "logger.h"
 
 proc_signal_t     g_signal={0};
@@ -59,7 +59,6 @@
             break;
     }
 }
-
 
 /* install default signal process functions  */
 void install_default_signal(void)
@@ -184,8 +183,6 @@
 
     return 0;
 }
-
-
 
 /* ****************************************************************************
  * FunctionName: record_daemon_pid
@@ -345,8 +342,6 @@
     return 0;
 }
 
-
-
 /* ****************************************************************************
  * FunctionName: set_daemon_running
  * Description : Set the programe running as daemon if it's not running and record
@@ -398,8 +393,6 @@
         goto CleanUp;
 
 CleanUp:
-
-
     if( thread_id )
     {
         if( rv )
@@ -412,7 +405,6 @@
     pthread_attr_destroy(&thread_attr);
     return rv;
 }
-
 
 /* excute a linux command by system() */
 void exec_system_cmd(const char *format, ...)
@@ -428,5 +420,3 @@
 
     system(cmd);
 }
-
-

--
Gitblit v1.9.1