From e97ceade5e1bba5787e39429384336fa37797906 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 6 Dec 2003 18:05:27 +0000 Subject: various tweaks. --- src/libthread/exit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libthread/exit.c') diff --git a/src/libthread/exit.c b/src/libthread/exit.c index 511e5bca..4cda307e 100644 --- a/src/libthread/exit.c +++ b/src/libthread/exit.c @@ -12,6 +12,8 @@ threadexits(char *exitstr) p = _threadgetproc(); t = p->thread; + if(t == p->idle) + p->idle = nil; t->moribund = 1; _threaddebug(DBGSCHED, "threadexits %s", exitstr); if(exitstr==nil) -- cgit v1.2.3