add check for procscheduler returning

This commit is contained in:
rsc 2005-02-16 17:15:56 +00:00
parent 2548dc0d11
commit d7688cce37

View file

@ -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;
}