Adds pid file support.

This commit is contained in:
Andrea Mazzoleni 2013-06-17 23:50:26 +02:00
parent 875081f530
commit bc2a837953
8 changed files with 149 additions and 14 deletions

View file

@ -66,6 +66,10 @@
#endif
#endif
#if HAVE_SYS_FILE_H
#include <sys/file.h>
#endif
#if HAVE_DIRENT_H
#include <dirent.h>
#define NAMLEN(dirent) strlen((dirent)->d_name)
@ -120,6 +124,13 @@
#define SWITCH_GETOPT_LONG(a,b) b
#endif
/**
* Enable PID file support.
*/
#if HAVE_FLOCK && HAVE_FTRUNCATE
#define HAVE_PIDFILE 1
#endif
/**
* Includes specific support for Windows or Linux.
*/