M pc/trap.c => pc/trap.c +4 -3
@@ 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;
M power/main.c => power/main.c +2 -1
@@ 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)));
}