~kris/9p

9hist

bd3a8d22597dbc4467e7b3ea7c6ac232762b52f8 — David du Colombier 34 years ago 3c0b3bd
Plan 9 from Bell Labs 1992-01-15
1 files changed, 5 insertions(+), 3 deletions(-)

M port/proc.c
M port/proc.c => port/proc.c +5 -3
@@ 521,7 521,11 @@ pexit(char *exitstr, int freemem)
	if(c->egrp)
		closeegrp(c->egrp);

	if(c->kp == 0) {
	/*
	 * if not a kernel process and have a parent,
	 * do some housekeeping.
	 */
	if(c->kp == 0 && (p = c->parent)) {
		wq = newwaitq();
		wq->w.pid = c->pid;
		wq->w.time[TUser] = TK2MS(c->time[TUser]);


@@ 533,8 537,6 @@ pexit(char *exitstr, int freemem)
		}else
			wq->w.msg[0] = '\0';

		/* Find my parent */
		p = c->parent;
		lock(&p->exl);
		/* My parent still alive */
		if(p->pid == c->parentpid && p->state != Broken && p->nwait < 128) {