mirror of https://github.com/python/cpython.git
If we're not using GUSI the "keep open on unseen output" becomes the same as "always keep open".
This commit is contained in:
parent
e7bfc915da
commit
6ff228c6d2
|
@ -544,7 +544,9 @@ Py_Main(argc, argv)
|
||||||
void
|
void
|
||||||
PyMac_OutputSeen()
|
PyMac_OutputSeen()
|
||||||
{
|
{
|
||||||
|
#ifdef USE_GUSI
|
||||||
gusisioux_state = GUSISIOUX_STATE_LASTREAD;
|
gusisioux_state = GUSISIOUX_STATE_LASTREAD;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -567,11 +569,15 @@ PyMac_Exit(status)
|
||||||
keep = 0;
|
keep = 0;
|
||||||
break;
|
break;
|
||||||
case POPT_KEEPCONSOLE_OUTPUT:
|
case POPT_KEEPCONSOLE_OUTPUT:
|
||||||
|
#ifdef USE_GUSI
|
||||||
if (gusisioux_state == GUSISIOUX_STATE_LASTWRITE ||
|
if (gusisioux_state == GUSISIOUX_STATE_LASTWRITE ||
|
||||||
gusisioux_state == GUSISIOUX_STATE_UNKNOWN )
|
gusisioux_state == GUSISIOUX_STATE_UNKNOWN )
|
||||||
keep = 1;
|
keep = 1;
|
||||||
else
|
else
|
||||||
keep = 0;
|
keep = 0;
|
||||||
|
#else
|
||||||
|
keep = 1;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
case POPT_KEEPCONSOLE_ERROR:
|
case POPT_KEEPCONSOLE_ERROR:
|
||||||
keep = (status != 0);
|
keep = (status != 0);
|
||||||
|
|
Loading…
Reference in New Issue