aboutsummaryrefslogtreecommitdiff
path: root/src/includes/rc-misc.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-17 22:55:11 +0000
committerRoy Marples <roy@marples.name>2009-04-17 22:55:11 +0000
commitee54bb937261b17c6767868607e95b2c560bd4b1 (patch)
treefadb67fcf50fe29cd10ac0d4b9ae8d76beebd970 /src/includes/rc-misc.h
parent7138c1532c6546a6939ec8f7fa37da708edc0ac6 (diff)
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 ...
Diffstat (limited to 'src/includes/rc-misc.h')
-rw-r--r--src/includes/rc-misc.h2
1 files changed, 2 insertions, 0 deletions
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");