mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
- Fixed PyMac_DoYield:
- Update lastyield correctly - Do event handling if PyMac_YieldEnabled > 0 (previous cmd-. fix broke this) - Use our own GUSISpin routine: fixes crash when exiting with sockets open and keeps windows, etc reacting consistently when waiting for accepts(), etc.
This commit is contained in:
parent
2e049b2b05
commit
f6865f77d4
3 changed files with 77 additions and 14 deletions
|
@ -28,6 +28,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||
#include "pythonresources.h"
|
||||
#include "import.h"
|
||||
#include "marshal.h"
|
||||
#include "macglue.h"
|
||||
|
||||
#include <Memory.h>
|
||||
#include <Resources.h>
|
||||
|
@ -108,6 +109,7 @@ init_common()
|
|||
#if defined(USE_GUSI)
|
||||
/* Setup GUSI */
|
||||
GUSIDefaultSetup();
|
||||
PyMac_SetGUSISpin();
|
||||
#endif
|
||||
|
||||
#ifdef USE_SIOUX
|
||||
|
@ -396,7 +398,14 @@ PyMac_Exit(status)
|
|||
}
|
||||
else
|
||||
SIOUXSettings.autocloseonquit = 1;
|
||||
#endif
|
||||
#ifdef USE_GUSI
|
||||
/*
|
||||
** Workaround for Sioux/GUSI combo: we should not call
|
||||
** SiouxHandleOneEvent after the window is closed
|
||||
*/
|
||||
PyMac_ConsoleIsDead = 1;
|
||||
#endif /* USE_GUSI */
|
||||
#endif /* USE_SIOUX */
|
||||
#ifdef THINK_C
|
||||
console_options.pause_atexit = keep;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue