From: Guido van Rossum Date: Mon, 30 Jan 1995 12:52:46 +0000 (+0000) Subject: Think C mod to suppress pausing at normal exit X-Git-Tag: v1.2b3~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=42a5124101c21e13829585cf585004d9318dd583;p=thirdparty%2FPython%2Fcpython.git Think C mod to suppress pausing at normal exit --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 4b58bb4c488a..980f2edee4a9 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -44,6 +44,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #endif +#ifdef THINK_C +#include +#endif + extern char *getpythonpath(); extern grammar gram; /* From graminit.c */ @@ -637,6 +641,10 @@ goaway(sts) } #endif /* TRACE_REFS */ +#ifdef THINK_C + if (sts == 0) + console_options.pause_atexit = 0; +#endif exit(sts); #endif /* WITH_THREAD */ /*NOTREACHED*/