]> granicus.if.org Git - python/commitdiff
Workaround for bug in MSL and CWGUSI interaction that stopped the
authorJack Jansen <jack.jansen@cwi.nl>
Wed, 7 May 1997 15:48:54 +0000 (15:48 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Wed, 7 May 1997 15:48:54 +0000 (15:48 +0000)
"don't close window on exit" feature to work.

Mac/Python/macmain.c

index bc02171ed8a6a63e23cb3f56b412b7cca709ba9b..9e8fbc57b8287505f3542fb07198a2bbe47837cb 100644 (file)
@@ -454,6 +454,13 @@ PyMac_Exit(status)
                SIOUXSettings.standalone = 1;
                SIOUXSettings.autocloseonquit = 0;
                SIOUXSetTitle("\p\307terminated\310");
+#ifdef USE_MSL
+               /*
+               ** Temporary workaround: autocloseonquit clearing does not
+               ** currently work for the MSL/GUSI combo.
+               */
+               while(getchar() > 0);
+#endif
        }
        else
                SIOUXSettings.autocloseonquit = 1;