diff options
author | rsc <devnull@localhost> | 2005-02-16 17:15:56 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-16 17:15:56 +0000 |
commit | d7688cce37173e43796f5243da7507b9e7c7a063 (patch) | |
tree | bfdaf564c880fefda0ac2869ae9fb63b647ad38f | |
parent | 2548dc0d116b8a9ae665adf0f54faa677d512c7b (diff) | |
download | plan9port-d7688cce37173e43796f5243da7507b9e7c7a063.tar.gz plan9port-d7688cce37173e43796f5243da7507b9e7c7a063.tar.bz2 plan9port-d7688cce37173e43796f5243da7507b9e7c7a063.zip |
add check for procscheduler returning
-rw-r--r-- | src/libthread/thread.c | 1 |
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; } |