summaryrefslogtreecommitdiffstats
path: root/src/libthread/create.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/create.c')
-rw-r--r--src/libthread/create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libthread/create.c b/src/libthread/create.c
index d2f4be25..4e6bc6de 100644
--- a/src/libthread/create.c
+++ b/src/libthread/create.c
@@ -138,7 +138,7 @@ proccreate(void (*f)(void*), void *arg, uint stacksize)
p = _threadgetproc();
np = _newproc();
p->newproc = np;
- p->schedfn = _threadstartproc;
+ p->schedfn = _kthreadstartproc;
id = _newthread(np, f, arg, stacksize, nil, p->thread->grp);
_sched(); /* call into scheduler to create proc XXX */
return id;