Uses a lock file instead than a pid file.

It's more appropriate for a not daemon.
This commit is contained in:
Andrea Mazzoleni 2013-06-18 21:06:31 +02:00
parent bc2a837953
commit fceaa8a4cf
7 changed files with 46 additions and 70 deletions

View file

@ -125,10 +125,10 @@
#endif
/**
* Enable PID file support.
* Enable lock file support.
*/
#if HAVE_FLOCK && HAVE_FTRUNCATE
#define HAVE_PIDFILE 1
#define HAVE_LOCKFILE 1
#endif
/**