mirror of https://github.com/python/cpython
Moved mac-specific exit handling to macmain.c
This commit is contained in:
parent
9513f2c95a
commit
66a8977b0e
|
@ -45,14 +45,6 @@ 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
|
|
||||||
|
|
||||||
#ifdef __MWERKS__
|
|
||||||
#include <SIOUX.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef NT
|
#ifdef NT
|
||||||
#undef BYTE
|
#undef BYTE
|
||||||
#include "windows.h"
|
#include "windows.h"
|
||||||
|
@ -670,20 +662,11 @@ goaway(sts)
|
||||||
}
|
}
|
||||||
#endif /* TRACE_REFS */
|
#endif /* TRACE_REFS */
|
||||||
|
|
||||||
/* XXXX Jack thinks it would be nicer to pause if any output has
|
#ifdef macintosh
|
||||||
** been generated since the last interaction with the user...
|
PyMac_Exit(sts);
|
||||||
*/
|
#else
|
||||||
#ifdef THINK_C
|
|
||||||
if (sts == 0)
|
|
||||||
console_options.pause_atexit = 0;
|
|
||||||
#endif
|
|
||||||
#ifdef __MWERKS__
|
|
||||||
if (sts == 0)
|
|
||||||
SIOUXSettings.autocloseonquit = 1;
|
|
||||||
else
|
|
||||||
printf("\n[Terminated]\n");
|
|
||||||
#endif
|
|
||||||
exit(sts);
|
exit(sts);
|
||||||
|
#endif
|
||||||
#endif /* WITH_THREAD */
|
#endif /* WITH_THREAD */
|
||||||
/*NOTREACHED*/
|
/*NOTREACHED*/
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue