Skip to content

Commit

Permalink
use definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptkeeper committed Aug 6, 2024
1 parent d3a1bbf commit 145387d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 145387d

Please sign in to comment.