diff options
Diffstat (limited to 'src/libthread/create.c')
| -rw-r--r-- | src/libthread/create.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libthread/create.c b/src/libthread/create.c index b63fee44..f5f0d6c0 100644 --- a/src/libthread/create.c +++ b/src/libthread/create.c @@ -24,6 +24,7 @@ newthread(Proc *p, void (*f)(void *arg), void *arg, uint stacksize, char *name, if(stacksize < 32) sysfatal("bad stacksize %d", stacksize); t = _threadmalloc(sizeof(Thread), 1); + t->lastfd = -1; s = _threadmalloc(stacksize, 0); t->stk = (uchar*)s; t->stksize = stacksize; |
