comparison Python/pythonrun.c @ 27358:58bad769776e legacy-trunk

MacPython-OS9 has had an abort() function for quite a while now, so there's no reason to stall in an endless loop, just call abort() on a fatal error.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 24 Jan 2003 16:17:18 +0000
parents 8b53b0ce06d4
children be7683a6f521
comparison
equal deleted inserted replaced
27357:afd1dc62e354 27358:58bad769776e
1321 1321
1322 void 1322 void
1323 Py_FatalError(const char *msg) 1323 Py_FatalError(const char *msg)
1324 { 1324 {
1325 fprintf(stderr, "Fatal Python error: %s\n", msg); 1325 fprintf(stderr, "Fatal Python error: %s\n", msg);
1326 #ifdef macintosh
1327 for (;;);
1328 #endif
1329 #ifdef MS_WINDOWS 1326 #ifdef MS_WINDOWS
1330 OutputDebugString("Fatal Python error: "); 1327 OutputDebugString("Fatal Python error: ");
1331 OutputDebugString(msg); 1328 OutputDebugString(msg);
1332 OutputDebugString("\n"); 1329 OutputDebugString("\n");
1333 #ifdef _DEBUG 1330 #ifdef _DEBUG