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 ...
This commit is contained in:
Roy Marples
2009-04-17 22:55:11 +00:00
parent 7138c1532c
commit ee54bb9372
3 changed files with 97 additions and 164 deletions

View File

@@ -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");