tadd check for procscheduler returning - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d7688cce37173e43796f5243da7507b9e7c7a063 | |
parent 2548dc0d116b8a9ae665adf0f54faa677d512c7b | |
Author: rsc | |
Date: Wed, 16 Feb 2005 17:15:56 +0000 add check for procscheduler returning Diffstat: M src/libthread/thread.c | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- | |
diff --git a/src/libthread/thread.c b/src/libthread/thread.c | |
t@@ -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; } |