s3:smbstatus don't check if process exists twice
authorChristian Ambach <ambi@samba.org>
Fri, 13 Jul 2012 15:10:05 +0000 (17:10 +0200)
committerChristian Ambach <ambi@samba.org>
Wed, 18 Jul 2012 13:49:52 +0000 (15:49 +0200)
is_valid_share_mode_entry() already calls serverid_exists which calls process_exists()

source3/utils/status.c

index 516b551c3fa6863f0cc267291109000a2a1b18e1..b87f64c15933395d57e711715ca76f46797fd5aa 100644 (file)
@@ -124,10 +124,6 @@ static void print_share_mode(const struct share_mode_entry *e,
                return;
        }
 
-       if (!process_exists(e->pid)) {
-               return;
-       }
-
        if (count==0) {
                d_printf("Locked files:\n");
                d_printf("Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time\n");