summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-30 12:52:46 +0000
committerGuido van Rossum <guido@python.org>1995-01-30 12:52:46 +0000
commit9b45320e1ad607419ee906750ac1a5021b5a8d26 (patch)
tree3a93827b4f537aaa7b4d4bd16f5d8f7d6ad1e9bd /Python/pythonrun.c
parent00621acfb344d3c9e388f9a9e18beb27d71ba655 (diff)
downloadcpython-9b45320e1ad607419ee906750ac1a5021b5a8d26.tar.gz
Think C mod to suppress pausing at normal exit
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 4b58bb4c48..980f2edee4 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 <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*/