diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2019-08-27 14:03:51 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2019-08-27 14:03:51 (GMT) |
commit | d42de626b604b75963fd593a145fd9c9b9e20602 (patch) | |
tree | 9e59d21b8fb106bbb3669a5167923867dd16d01e /src/H5system.c | |
parent | 6e8c48182fe463721f23597b64127863291cb35a (diff) | |
download | hdf5-d42de626b604b75963fd593a145fd9c9b9e20602.zip hdf5-d42de626b604b75963fd593a145fd9c9b9e20602.tar.gz hdf5-d42de626b604b75963fd593a145fd9c9b9e20602.tar.bz2 |
Fixed a bug where we incorrectly pass a lock struct to fcntl
for file locking instead of a pointer.
Diffstat (limited to 'src/H5system.c')
-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; |