Commit 615143bf authored by Sebastian Ramacher's avatar Sebastian Ramacher

Wait for lock

parent 72792689
......@@ -46,7 +46,7 @@ static int
file_lock_set(int fd, short cmd)
{
struct flock lock = { .l_type = cmd, .l_start = 0, .l_whence = SEEK_SET, .l_len = 0};
return fcntl(fd, F_SETLK, lock);
return fcntl(fd, F_SETLKW, lock);
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment