Fix small bugs.
This commit is contained in:
parent
2f2df5e02e
commit
c4097c2951
14 changed files with 71 additions and 34 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue