Don't reset the pid field on process_del(), it's not tested anywhere anyway.
Hmm, there was one reference to mp->pid, but the ASSERT didn't make
much sense anyway, so I am removing it.
DBG("MAIN: Deleting process %p (pid=%d)", mp, mp->pid);
ASSERT(mp->n.next);
clist_remove(&mp->n);
- mp->pid = 0;
mp->n.next = NULL;
}
int
process_fork(struct main_process *mp)
{
- ASSERT(!mp->pid);
pid_t pid = fork();
if (pid < 0)
{