diff options
Diffstat (limited to 'src/libthread/main.c')
-rw-r--r-- | src/libthread/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libthread/main.c b/src/libthread/main.c index 06c12935..97a6154a 100644 --- a/src/libthread/main.c +++ b/src/libthread/main.c @@ -37,7 +37,7 @@ main(int argc, char **argv) _systhreadinit(); _qlockinit(_threadrendezvous); _sysfatal = _threadsysfatal; -// notify(_threadnote); + notify(_threadnote); if(mainstacksize == 0) mainstacksize = 32*1024; @@ -98,6 +98,7 @@ _schedexit(Proc *p) break; } } + _threadprocs--; unlock(&_threadpq.lock); strncpy(ex, p->exitstr, sizeof ex); |