summaryrefslogtreecommitdiffstats
path: root/src/libthread/create.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-05-11 17:51:27 +0000
committerrsc <devnull@localhost>2004-05-11 17:51:27 +0000
commitc4097c29512269f4547ebefb8abdc57a2892b479 (patch)
treee84c61a845b196bfa903088e15b772ae0b16c8bb /src/libthread/create.c
parent2f2df5e02ef22c9727ae2b8269d5c76a061d296f (diff)
downloadplan9port-c4097c29512269f4547ebefb8abdc57a2892b479.tar.gz
plan9port-c4097c29512269f4547ebefb8abdc57a2892b479.zip
Fix small bugs.
Diffstat (limited to 'src/libthread/create.c')
-rw-r--r--src/libthread/create.c1
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;