summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-06-06 15:22:31 +0200
committerMichael Adam <obnox@samba.org>2012-06-06 19:37:14 +0200
commitba1699463bee4d622e76f54c1a1c17858545c84f (patch)
tree9bb383e332c181f026939d0370e5389c385b56b3 /source3/web
parentaa3a7de3687ac78ae1ed3fa395d8c4707a24b774 (diff)
downloadsamba-ba1699463bee4d622e76f54c1a1c17858545c84f.tar.gz
samba-ba1699463bee4d622e76f54c1a1c17858545c84f.tar.bz2
samba-ba1699463bee4d622e76f54c1a1c17858545c84f.zip
s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/statuspage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/web/statuspage.c b/source3/web/statuspage.c
index 4b3d3aea86..dd83d158ae 100644
--- a/source3/web/statuspage.c
+++ b/source3/web/statuspage.c
@@ -190,7 +190,7 @@ static int traverse_fn1(const struct connections_key *key,
const struct connections_data *crec,
void *private_data)
{
- if (crec->cnum == -1 && process_exists(crec->pid)) {
+ if (crec->cnum == TID_FIELD_INVALID && process_exists(crec->pid)) {
char buf[30];
slprintf(buf,sizeof(buf)-1,"kill_%s", procid_str_static(&crec->pid));
if (cgi_variable(buf)) {
@@ -206,7 +206,7 @@ static int traverse_fn2(const struct connections_key *key,
const struct connections_data *crec,
void *private_data)
{
- if (crec->cnum == -1 || !process_exists(crec->pid) ||
+ if (crec->cnum == TID_FIELD_INVALID || !process_exists(crec->pid) ||
procid_equal(&crec->pid, &smbd_pid))
return 0;
@@ -230,7 +230,7 @@ static int traverse_fn3(const struct connections_key *key,
const struct connections_data *crec,
void *private_data)
{
- if (crec->cnum == -1 || !process_exists(crec->pid))
+ if (crec->cnum == TID_FIELD_INVALID || !process_exists(crec->pid))
return 0;
printf("<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>\n",