diff options
author | Daniel Carl <danielcarl@gmx.de> | 2015-10-21 19:46:50 +0200 |
---|---|---|
committer | Daniel Carl <danielcarl@gmx.de> | 2015-10-21 19:49:16 +0200 |
commit | d546d7d1e39db8bac27cac250c3a40f854c1a9ef (patch) | |
tree | 24a8f95b7284e0033a66c1868aeb3fd0c8117d4e /src/main.h | |
parent | c5b20658e84ae96c9945c1ca328813df8163aecc (diff) |
Use flock instead of fcntl for file locking (#235).
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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(...) { \ |