darwin 386 start

This commit is contained in:
rsc 2006-04-21 03:34:44 +00:00
parent 6b11fe88cb
commit 110c707dda
6 changed files with 119 additions and 2 deletions

View file

@ -624,6 +624,7 @@ main(int argc, char **argv)
argv0 = argv[0];
write(1, "", 0);
if(getenv("NOLIBTHREADDAEMONIZE") == nil)
_threadsetupdaemonize();
@ -651,7 +652,7 @@ main(int argc, char **argv)
_threadsetproc(p);
if(mainstacksize == 0)
mainstacksize = 256*1024;
atnotify(threadinfo, 1);
// atnotify(threadinfo, 1);
_threadcreate(p, threadmainstart, nil, mainstacksize);
procscheduler(p);
sysfatal("procscheduler returned in threadmain!");