mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Think C mod to suppress pausing at normal exit
This commit is contained in:
parent
d503913594
commit
42a5124101
1 changed files with 8 additions and 0 deletions
|
@ -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*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue