Rev 600: don't display dead share mode entries in smbstatus in http://samba.org/~tridge/3_0-ctdb

tridge at samba.org tridge at samba.org
Sun Jun 17 21:00:02 GMT 2007


------------------------------------------------------------
revno: 600
revision-id: tridge at samba.org-20070617210000-tq41u51ojd7f7erk
parent: tridge at samba.org-20070617163600-hvcm2thc6nw756ha
committer: Andrew Tridgell <tridge at samba.org>
branch nick: s3-ctdb-tridge
timestamp: Mon 2007-06-18 07:00:00 +1000
message:
  don't display dead share mode entries in smbstatus
modified:
  source/utils/status.c          status.c-20070210173807-1wjifrbwaz6xnmgl-1163
=== modified file 'source/utils/status.c'
--- a/source/utils/status.c	2007-06-17 16:36:00 +0000
+++ b/source/utils/status.c	2007-06-17 21:00:00 +0000
@@ -112,6 +112,10 @@
 		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");



More information about the samba-cvs mailing list