Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42a5124

Browse files
committed
Think C mod to suppress pausing at normal exit
1 parent d503913 commit 42a5124

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Python/pythonrun.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4444
#include <signal.h>
4545
#endif
4646

47+
#ifdef THINK_C
48+
#include <console.h>
49+
#endif
50+
4751
extern char *getpythonpath();
4852

4953
extern grammar gram; /* From graminit.c */
@@ -637,6 +641,10 @@ goaway(sts)
637641
}
638642
#endif /* TRACE_REFS */
639643

644+
#ifdef THINK_C
645+
if (sts == 0)
646+
console_options.pause_atexit = 0;
647+
#endif
640648
exit(sts);
641649
#endif /* WITH_THREAD */
642650
/*NOTREACHED*/

0 commit comments

Comments
 (0)