From fbbb2d0b2aba4ddc42651096b20dd4a7ca4a33f2 Mon Sep 17 00:00:00 2001
From: Guo Wenxue <guowenxue@gmail.com>
Date: Wed, 21 Sep 2022 23:04:57 +0800
Subject: [PATCH] Merge branch 'master' of ssh://master.iot-yun.club:2280/raspberrypi

---
 iotd/lylib/util_proc.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/iotd/lylib/util_proc.h b/iotd/lylib/util_proc.h
index 24745de..009cf70 100644
--- a/iotd/lylib/util_proc.h
+++ b/iotd/lylib/util_proc.h
@@ -34,6 +34,9 @@
 /* excute a linux command by system() */
 extern void exec_system_cmd(const char *format, ...);
 
+/* check program already running or not, if not then run it and record pid into $pidfile */
+extern int check_set_program_running(int daemon, char *pidfile);
+
 /* check program already running or not from $pid_file  */
 extern int check_daemon_running(const char *pid_file);
 

--
Gitblit v1.9.1