do not call exits in threaded programs

This commit is contained in:
rsc 2005-01-17 21:29:00 +00:00
parent e33c70bc72
commit 38c10d1abc
8 changed files with 25 additions and 17 deletions

View file

@ -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
*/