summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-08-31 22:30:15 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-08-31 22:30:15 (GMT)
commit3218e2bc88885a98b44b603229bb8843aa6924b7 (patch)
treec9f9347c08ab9f2c6726f43baca45734d2894cdb
parent400fafafc9118230e1597885771dc4032c05c02c (diff)
downloadhdf5-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.c5
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)