]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Think C mod to suppress pausing at normal exit
authorGuido van Rossum <guido@python.org>
Mon, 30 Jan 1995 12:52:46 +0000 (12:52 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 30 Jan 1995 12:52:46 +0000 (12:52 +0000)
Python/pythonrun.c

index 4b58bb4c488a73dc0cf514c17e26246fe42277cc..980f2edee4a9751a588f1bb789664428103ae700 100644 (file)
@@ -44,6 +44,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <signal.h>
 #endif
 
+#ifdef THINK_C
+#include <console.h>
+#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*/