aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/thread.c')
-rw-r--r--src/libthread/thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c
index eb8370b3..61d1aa2a 100644
--- a/src/libthread/thread.c
+++ b/src/libthread/thread.c
@@ -614,6 +614,7 @@ main(int argc, char **argv)
mainstacksize = 256*1024;
_threadcreate(p, threadmainstart, nil, mainstacksize);
procscheduler(p);
+ sysfatal("procscheduler returned in threadmain!");
/* does not return */
return 0;
}