being indexed by worker slot during initialization, then by process slot when
generating output.
This saves a little storage and a few cycles, too.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89534
13f79535-47bb-0310-9956-
ffa450edef68
worker_score ws_record;
process_score ps_record;
char stat_buffer[HARD_SERVER_LIMIT * HARD_THREAD_LIMIT];
- pid_t pid_buffer[HARD_SERVER_LIMIT * HARD_THREAD_LIMIT];
+ pid_t pid_buffer[HARD_SERVER_LIMIT];
clock_t tu, ts, tcu, tcs;
server_rec *vhost;
ps_record = ap_scoreboard_image->parent[i];
res = ws_record.status;
stat_buffer[indx] = status_flags[res];
- pid_buffer[indx] = ps_record.pid;
if (res == SERVER_READY)
ready++;
else if (res != SERVER_DEAD && res != SERVER_IDLE_KILL)
}
}
}
+ pid_buffer[i] = ps_record.pid;
}
/* up_time in seconds */