From 62a22f80cbf2ce6d4aed8b76bbc68191b7f67407 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Thu, 3 Dec 1992 00:00:00 +0000 Subject: [PATCH] Plan 9 from Bell Labs 1992-12-03 --- pc/trap.c | 7 ++++--- power/main.c | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pc/trap.c b/pc/trap.c index 3265c37c1bf4f2c5ac30449e0eb9d122915b68c9..ea1824f46fe2a14d48f0e0dbf82e633a4988a0b1 100644 --- a/pc/trap.c +++ b/pc/trap.c @@ -423,14 +423,15 @@ notify(Ureg *ur) if(n->flag!=NUser && (u->notified || u->notify==0)){ if(n->flag == NDebug) pprint("suicide: %s\n", n->msg); - Die: qunlock(&u->p->debug); pexit(n->msg, n->flag!=NDebug); } sent = 0; if(!u->notified){ - if(!u->notify) - goto Die; + if(!u->notify){ + qunlock(&u->p->debug); + pexit(n->msg, n->flag!=NDebug); + } sent = 1; u->svcs = ur->cs; u->svss = ur->ss; diff --git a/power/main.c b/power/main.c index 2e6de2ff4c3019cfef36d0c4d4c56d1d9cd158df..17e34d12022f563dd2666d8df11718f4d02822a0 100644 --- a/power/main.c +++ b/power/main.c @@ -198,7 +198,8 @@ init0(void) poperror(); } - kproc("kdebug", debugger, 0); + if(conf.nmach > 2) + kproc("kdebug", debugger, 0); kproc("alarm", alarmkproc, 0); touser((uchar*)(USTKTOP - sizeof(argbuf))); }