summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2015-10-21 19:46:50 +0200
committerDaniel Carl <danielcarl@gmx.de>2015-10-21 19:49:16 +0200
commitd546d7d1e39db8bac27cac250c3a40f854c1a9ef (patch)
tree24a8f95b7284e0033a66c1868aeb3fd0c8117d4e /src/main.h
parentc5b20658e84ae96c9945c1ca328813df8163aecc (diff)
Use flock instead of fcntl for file locking (#235).
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main.h b/src/main.h
index 7e4c035..6179928 100644
--- a/src/main.h
+++ b/src/main.h
@@ -41,10 +41,6 @@
#define LENGTH(x) (sizeof x / sizeof x[0])
-#define FLOCK(fd, cmd) { \
- struct flock lock = {.l_type=cmd,.l_start=0,.l_whence=SEEK_SET,.l_len=0}; \
- fcntl(fd, F_SETLKW, &lock); \
-}
#ifdef DEBUG
#define PRINT_DEBUG(...) { \