From f80b9e4acc47cf454768b44142495fdb8a68a39f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 21 Oct 2013 15:49:11 +0200 Subject: utils: add a function for checking if a process given by pid is still alive Signed-off-by: Felix Fietkau --- utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 23795e5..b0a7d02 100644 --- a/utils.h +++ b/utils.h @@ -14,6 +14,7 @@ #ifndef __NETIFD_UTILS_H #define __NETIFD_UTILS_H +#include #include #include #include @@ -107,6 +108,7 @@ static inline int fls(int x) unsigned int parse_netmask_string(const char *str, bool v6); bool split_netmask(char *str, unsigned int *netmask, bool v6); int parse_ip_and_netmask(int af, const char *str, void *addr, unsigned int *netmask); +bool check_pid_path(int pid, const char *exe); char * format_macaddr(uint8_t *mac); -- cgit v1.2.3