mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
Merge pull request #1902 in HDFFV/hdf5 from ~DEROBINS/hdf5_der:fcntl_lock_bug to develop
* commit 'd42de626b604b75963fd593a145fd9c9b9e20602': Fixed a bug where we incorrectly pass a lock struct to fcntl for file locking instead of a pointer.
This commit is contained in:
commit
91a34039ba
@ -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