summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-08-27 19:10:30 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-08-27 19:10:30 (GMT)
commit91a34039ba4f6a85da65f5720b22a36179f2cf3f (patch)
treef871b85ee93f53d977b17356f4691b2dbb078721
parent506a5069a8b401db52ffe314e53751a0f1027128 (diff)
parentd42de626b604b75963fd593a145fd9c9b9e20602 (diff)
downloadhdf5-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.c2
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;