Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 61452:677511edf05c 3.1
Merged revisions 81016 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81016 | jean-paul.calderone | 2010-05-08 23:18:57 -0400 (Sat, 08 May 2010) | 9 lines
Merged revisions 81007 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81007 | jean-paul.calderone | 2010-05-08 16:06:02 -0400 (Sat, 08 May 2010) | 1 line
Skip signal handler re-installation if it is not necessary. Issue 8354.
........
................
| author | Jean-Paul Calderone <exarkun@divmod.com> |
|---|---|
| date | Sun, 09 May 2010 03:25:16 +0000 |
| parents | a366d631a629 |
| children | f197407bdba2 |
line wrap: on
line diff
--- a/Python/pythonrun.c Sun May 09 03:17:36 2010 +0000 +++ b/Python/pythonrun.c Sun May 09 03:25:16 2010 +0000 @@ -2237,6 +2237,10 @@ PyOS_setsig(int sig, PyOS_sighandler_t handler) { #ifdef HAVE_SIGACTION + /* Some code in Modules/signalmodule.c depends on sigaction() being + * used here if HAVE_SIGACTION is defined. Fix that if this code + * changes to invalidate that assumption. + */ struct sigaction context, ocontext; context.sa_handler = handler; sigemptyset(&context.sa_mask);
