summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-30 12:52:46 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-30 12:52:46 (GMT)
commit42a5124101c21e13829585cf585004d9318dd583 (patch)
treebe5fd01ed654b98db16ed4e824fca765531a17d3 /Python/pythonrun.c
parentd503913594f1f801f93d0d29df1ce86db9891315 (diff)
downloadcpython-42a5124101c21e13829585cf585004d9318dd583.zip
cpython-42a5124101c21e13829585cf585004d9318dd583.tar.gz
cpython-42a5124101c21e13829585cf585004d9318dd583.tar.bz2
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 4b58bb4..980f2ed 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*/