From ee54bb937261b17c6767868607e95b2c560bd4b1 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 17 Apr 2009 22:55:11 +0000 Subject: Using fifos for locking can be error prone. flocks are safer, as we only use tmpfs for our lock files. I don't know how this works for inactive just yet though ... --- src/includes/rc-misc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/includes') diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 113662f6..42447155 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -150,6 +150,8 @@ bool rc_conf_yesno(const char *var); void env_filter(void); void env_config(void); int signal_setup(int sig, void (*handler)(int)); +int svc_lock(const char *); +int svc_unlock(const char *, int); pid_t exec_service(const char *, const char *); #define service_start(service) exec_service(service, "start"); -- cgit v1.2.3