From ff4949eeee7f86117d4a69599777ff5564315e39 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 5 Aug 1992 19:58:53 +0000 Subject: * Makefile: cosmetics * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics --- Python/thread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Python/thread.c') diff --git a/Python/thread.c b/Python/thread.c index 1f0633a0a3..4aa06cf802 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -17,7 +17,7 @@ static int exiting; #include #include -#define STACKSIZE 1000 /* stacksize for a thread */ +#define STACKSIZE 16000 /* stacksize for a thread */ #define NSTACKS 2 /* # stacks to be put in cache initialy */ struct lock { @@ -90,7 +90,7 @@ void exit_thread _P0() exit(0); #ifdef __sgi exiting = 1; - exit(0); + _exit(0); #endif #ifdef SOLARIS thread_exit(); @@ -113,7 +113,7 @@ static void exit_sig _P0() #ifdef DEBUG printf("exiting in exit_sig\n"); #endif - exit(exit_status); + _exit(exit_status); } } #endif @@ -255,7 +255,7 @@ void exit_prog _P1(status, int status) exiting = 1; do_exit = 1; exit_status = status; - exit(status); + _exit(status); #endif #ifdef sun pod_exit(status); -- cgit v1.2.1