diff options
Diffstat (limited to 'src/libthread/exit.c')
| -rw-r--r-- | src/libthread/exit.c | 2 |
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) |
