mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-17 16:10:24 +08:00
Fixed a bug where we incorrectly pass a lock struct to fcntl
for file locking instead of a pointer.
This commit is contained in:
parent
6e8c48182f
commit
d42de626b6
@ -631,7 +631,7 @@ Pflock(int fd, int operation) {
|
||||
flk.l_pid = 0; /* not used with set */
|
||||
|
||||
/* Lock or unlock */
|
||||
if(HDfcntl(fd, F_SETLK, flk) < 0)
|
||||
if(HDfcntl(fd, F_SETLK, &flk) < 0)
|
||||
return -1;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user