jim 97/07/03 14:27:24
Modified: src mod_status.c
Log:
Adjust status report so the PID field for dead processes
makes more sense for the generic user. Previously, it printed out
the PID of the parent httpd process (which is what Apache sets it
to internally). Now we just print out a dash
Revision Changes Path
1.49 +12 -4 apache/src/mod_status.c
Index: mod_status.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_status.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -C3 -r1.48 -r1.49
*** mod_status.c 1997/06/24 00:32:31 1.48
--- mod_status.c 1997/07/03 21:27:23 1.49
***************
*** 450,457 ****
{
if (no_table_report)
{
! rprintf(r,"<b>Server %d</b> (%d): %d|%lu|%lu [",
! i,(int)score_record.pid,(int)conn_lres,my_lres,lres);
switch (score_record.status)
{
--- 450,461 ----
{
if (no_table_report)
{
! if (score_record.status == SERVER_DEAD)
! rprintf(r,"<b>Server %d</b> (-): %d|%lu|%lu [",
! i,(int)conn_lres,my_lres,lres);
! else
! rprintf(r,"<b>Server %d</b> (%d): %d|%lu|%lu [",
! i,(int)score_record.pid,(int)conn_lres,my_lres,lres);
switch (score_record.status)
{
***************
*** 510,517 ****
}
else /* !no_table_report */
{
! rprintf(r,"<tr><td><b>%d</b><td>%d<td>%d/%lu/%lu",
! i,(int)score_record.pid,(int)conn_lres,my_lres,lres);
switch (score_record.status)
{
--- 514,525 ----
}
else /* !no_table_report */
{
! if (score_record.status == SERVER_DEAD)
! rprintf(r,"<tr><td><b>%d</b><td>-<td>%d/%lu/%lu",
! i,(int)conn_lres,my_lres,lres);
! else
! rprintf(r,"<tr><td><b>%d</b><td>%d<td>%d/%lu/%lu",
! i,(int)score_record.pid,(int)conn_lres,my_lres,lres);
switch (score_record.status)
{