diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-08-27 19:10:30 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-08-27 19:10:30 (GMT) |
commit | 91a34039ba4f6a85da65f5720b22a36179f2cf3f (patch) | |
tree | f871b85ee93f53d977b17356f4691b2dbb078721 | |
parent | 506a5069a8b401db52ffe314e53751a0f1027128 (diff) | |
parent | d42de626b604b75963fd593a145fd9c9b9e20602 (diff) | |
download | hdf5-91a34039ba4f6a85da65f5720b22a36179f2cf3f.zip hdf5-91a34039ba4f6a85da65f5720b22a36179f2cf3f.tar.gz hdf5-91a34039ba4f6a85da65f5720b22a36179f2cf3f.tar.bz2 |
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.
-rw-r--r-- | src/H5system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5system.c b/src/H5system.c index 1d47d13..384360d 100644 --- a/src/H5system.c +++ b/src/H5system.c @@ -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; |