diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2015-08-31 22:30:15 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2015-08-31 22:30:15 (GMT) |
commit | 3218e2bc88885a98b44b603229bb8843aa6924b7 (patch) | |
tree | c9f9347c08ab9f2c6726f43baca45734d2894cdb | |
parent | 400fafafc9118230e1597885771dc4032c05c02c (diff) | |
download | hdf5-3218e2bc88885a98b44b603229bb8843aa6924b7.zip hdf5-3218e2bc88885a98b44b603229bb8843aa6924b7.tar.gz hdf5-3218e2bc88885a98b44b603229bb8843aa6924b7.tar.bz2 |
[svn-r27633] Removed pid check from Pflock() in H5system.c. This field is only
used when getting lock status.
tested on: emu (only system that uses fcntl in lieu of flock)
-rw-r--r-- | src/H5system.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/H5system.c b/src/H5system.c index 3ba5f4c..b3f60ab 100644 --- a/src/H5system.c +++ b/src/H5system.c @@ -642,10 +642,6 @@ int Pflock(int fd, int operation) { struct flock flk; - pid_t pid; - - /* Get the pid */ - flk.l_pid = HDgetpid(); /* Set the lock type */ if(operation & LOCK_UN) @@ -659,6 +655,7 @@ Pflock(int fd, int operation) { flk.l_whence = SEEK_SET; flk.l_start = 0; flk.l_len = 0; /* to EOF */ + flk.l_pid = 0; /* not used with set */ /* Lock or unlock */ if(HDfcntl(fd, F_SETLK, flk) < 0) |