summaryrefslogtreecommitdiffstats
path: root/src/libthread/exit.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-12-06 18:05:27 +0000
committerrsc <devnull@localhost>2003-12-06 18:05:27 +0000
commite97ceade5e1bba5787e39429384336fa37797906 (patch)
tree1353f5aa99b04e9c030ecc89cd7b526cb814090d /src/libthread/exit.c
parentc715a6127a46b8090591972b5c4bb04dfabbca8b (diff)
downloadplan9port-e97ceade5e1bba5787e39429384336fa37797906.tar.gz
plan9port-e97ceade5e1bba5787e39429384336fa37797906.zip
various tweaks.
Diffstat (limited to 'src/libthread/exit.c')
-rw-r--r--src/libthread/exit.c2
1 files changed, 2 insertions, 0 deletions
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)