From 38c10d1abcab399ce3735ccf54672a5b6787165e Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 17 Jan 2005 21:29:00 +0000 Subject: do not call exits in threaded programs --- include/thread.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/thread.h b/include/thread.h index c6dc5930..0ba726a4 100644 --- a/include/thread.h +++ b/include/thread.h @@ -23,6 +23,14 @@ void _threadsleep(Rendez*); _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 */ -- cgit v1.2.3