File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ David Chaum
113113Nicolas Chauvat
114114Michael Chermside
115115Albert Chin-A-Young
116+ Adal Chiriliuc
116117Tom Christiansen
117118Vadim Chugunov
118119David Cinege
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ What's New in Python 2.5 alpha 1?
1212Core and builtins
1313-----------------
1414
15+ - Patch #1350409: Work around signal handling bug in Visual Studio 2005.
16+
1517- Bug #1281408: Py_BuildValue now works correct even with unsigned longs
1618 and long longs.
1719
Original file line number Diff line number Diff line change @@ -1615,6 +1615,23 @@ PyOS_getsig(int sig)
16151615 return context .sa_handler ;
16161616#else
16171617 PyOS_sighandler_t handler ;
1618+ /* Special signal handling for the secure CRT in Visual Studio 2005 */
1619+ #if defined(_MSC_VER ) && _MSC_VER >= 1400
1620+ switch (sig ) {
1621+ /* Only these signals are valid */
1622+ case SIGINT :
1623+ case SIGILL :
1624+ case SIGFPE :
1625+ case SIGSEGV :
1626+ case SIGTERM :
1627+ case SIGBREAK :
1628+ case SIGABRT :
1629+ break ;
1630+ /* Don't call signal() with other values or it will assert */
1631+ default :
1632+ return SIG_ERR ;
1633+ }
1634+ #endif /* _MSC_VER && _MSC_VER >= 1400 */
16181635 handler = signal (sig , SIG_IGN );
16191636 if (handler != SIG_ERR )
16201637 signal (sig , handler );
You can’t perform that action at this time.
0 commit comments