- Improve pidfile handling

- Clean shutdown if daemon is killed
- Prevent daemon from running twice
- Minor code cleanup and refactoring
This commit is contained in:
2015-09-15 18:15:12 +04:30
parent 49202f073a
commit 620e51230e
2 changed files with 117 additions and 48 deletions

View File

@ -1,6 +1,6 @@
PREFIX=/usr/local
INC=-I$(PREFIX)/include
LIB=-L$(PREFIX)/lib
LIB=-L$(PREFIX)/lib -lutil
FLAGS=-Wall -O2 -pipe -funroll-loops -ffast-math -fno-strict-aliasing -mssse3
CC?=cc