diff options
Diffstat (limited to 'source3/locking/locking_slow.c')
-rw-r--r-- | source3/locking/locking_slow.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/locking/locking_slow.c b/source3/locking/locking_slow.c index 9bd6d65aa7..935ed09f60 100644 --- a/source3/locking/locking_slow.c +++ b/source3/locking/locking_slow.c @@ -996,8 +996,10 @@ static int slow_share_forall(void (*fn)(share_mode_entry *, char *)) e.pid = SVAL(p,SME_PID_OFFSET); e.op_type = SVAL(p,SME_OPLOCK_TYPE_OFFSET); - fn(&e, fname); - count++; + if (process_exists(e.pid)) { + fn(&e, fname); + count++; + } } /* end for i */ if(buf) |