Kaydet (Commit) 42a51241 authored tarafından Guido van Rossum's avatar Guido van Rossum

Think C mod to suppress pausing at normal exit

üst d5039135
...@@ -44,6 +44,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -44,6 +44,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <signal.h> #include <signal.h>
#endif #endif
#ifdef THINK_C
#include <console.h>
#endif
extern char *getpythonpath(); extern char *getpythonpath();
extern grammar gram; /* From graminit.c */ extern grammar gram; /* From graminit.c */
...@@ -637,6 +641,10 @@ goaway(sts) ...@@ -637,6 +641,10 @@ goaway(sts)
} }
#endif /* TRACE_REFS */ #endif /* TRACE_REFS */
#ifdef THINK_C
if (sts == 0)
console_options.pause_atexit = 0;
#endif
exit(sts); exit(sts);
#endif /* WITH_THREAD */ #endif /* WITH_THREAD */
/*NOTREACHED*/ /*NOTREACHED*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment