Staging
v0.5.1
https://github.com/python/cpython
Revision 55aa2f39a302be51de631e8cd6da77c054d8447e authored by Matthias Klose on 26 November 2010, 11:56:26 UTC, committed by Matthias Klose on 26 November 2010, 11:56:26 UTC
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r85645 | matthias.klose | 2010-10-17 15:22:33 +0200 (Sun, 17 Oct 2010) | 2 lines

  - Accept Oracle Berkeley DB 5.0 and 5.1 as backend for the dbm extension.
........
1 parent 5d744a8
Raw File
Tip revision: 55aa2f39a302be51de631e8cd6da77c054d8447e authored by Matthias Klose on 26 November 2010, 11:56:26 UTC
Merged revisions 85645 via svnmerge from
Tip revision: 55aa2f3
sigcheck.c

/* Sigcheck is similar to intrcheck() but sets an exception when an
   interrupt occurs.  It can't be in the intrcheck.c file since that
   file (and the whole directory it is in) doesn't know about objects
   or exceptions.  It can't be in errors.c because it can be
   overridden (at link time) by a more powerful version implemented in
   signalmodule.c. */

#include "Python.h"

/* ARGSUSED */
int
PyErr_CheckSignals(void)
{
	if (!PyOS_InterruptOccurred())
		return 0;
	PyErr_SetNone(PyExc_KeyboardInterrupt);
	return -1;
}
back to top