.initialize variable to prevent negative array indexing
.remove dead code
register struct mproc *rmp; /* pointer to parent */
register struct mproc *rmc; /* pointer to child */
pid_t new_pid;
- static int next_child;
+ static int next_child = 0;
int i, n = 0, s;
endpoint_t child_ep;
message m;
register struct mproc *rmc; /* pointer to child */
int s;
pid_t new_pid;
- static int next_child;
+ static int next_child = 0;
int i, n = 0;
endpoint_t child_ep;
message m;
/* Check for system notifications first. Special cases. */
if (is_ipc_notify(ipc_status)) {
- switch(who_p) {
- case CLOCK:
- expire_timers(m_in.NOTIFY_TIMESTAMP);
- result = SUSPEND; /* don't reply */
- break;
- default :
- /* ignore notify() from unknown sender */
- result = SUSPEND;
+ if (who_p == CLOCK) {
+ expire_timers(m_in.NOTIFY_TIMESTAMP);
}
/* done, send reply and continue */
- if (result != SUSPEND) setreply(who_p, result);
sendreply();
continue;
}