diff options
author | rsc <devnull@localhost> | 2005-01-17 21:29:00 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-17 21:29:00 +0000 |
commit | 38c10d1abcab399ce3735ccf54672a5b6787165e (patch) | |
tree | 9a9a70c593a42f68837a5a02461e9d3ce31433bf /include | |
parent | e33c70bc72fa4af9d2261ed6d864bd13b8af9be5 (diff) | |
download | plan9port-38c10d1abcab399ce3735ccf54672a5b6787165e.tar.gz plan9port-38c10d1abcab399ce3735ccf54672a5b6787165e.tar.bz2 plan9port-38c10d1abcab399ce3735ccf54672a5b6787165e.zip |
do not call exits in threaded programs
Diffstat (limited to 'include')
-rw-r--r-- | include/thread.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/thread.h b/include/thread.h index c6dc5930..0ba726a4 100644 --- a/include/thread.h +++ b/include/thread.h @@ -24,6 +24,14 @@ _Thread *_threadwakeup(Rendez*); #define yield threadyield /* + * I am tired of making this mistake. + */ +#define exits do_not_call_exits_in_threaded_programs +#define _exits do_not_call__exits_in_threaded_programs + + + +/* * signals */ void threadnotify(int(*f)(void*,char*), int); |