do not call exits in threaded programs
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user