diff --git a/src/main.c b/src/main.c index ef60ec2..3fd96d9 100644 --- a/src/main.c +++ b/src/main.c @@ -61,7 +61,7 @@ static struct { static int lockfile(void) { assert(!lfh.open); snprintf(lfh.fp, MAXFP, "%s/.fsautoproc.lock", initargs.searchdir); - if ((lfh.fd = open(lfh.fp, O_RDWR | O_CREAT | O_EXCL | O_EXLOCK)) < 0) { + if ((lfh.fd = open(lfh.fp, O_RDWR | O_CREAT | O_EXCL | EXFILELOCKFLAG)) < 0) { log_error("error locking `%s`: %s", lfh.fp, strerror(errno)); return -1; }