annotate Python/sigcheck.c @ 58689:514b56efd89a 3.1

Merged revisions 77962 via svnmerge from svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77962 | r.david.murray | 2010-02-04 11:41:57 -0500 (Thu, 04 Feb 2010) | 17 lines Merged revisions 77943,77959-77960 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77943 | r.david.murray | 2010-02-03 08:36:23 -0500 (Wed, 03 Feb 2010) | 2 lines Explicitly mention the default value for formatdate's usegmt parameter. ........ r77959 | nick.coghlan | 2010-02-04 07:43:58 -0500 (Thu, 04 Feb 2010) | 1 line Issue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert ........ r77960 | r.david.murray | 2010-02-04 11:33:31 -0500 (Thu, 04 Feb 2010) | 2 lines Add Chris Rebert to ACKS for issue 6760 Popen doc improvements. ........ ................
author R. David Murray <rdmurray@bitdance.com>
date Thu, 04 Feb 2010 16:44:31 +0000
parents 6f6f965c5e2d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1660
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
1
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
2 /* Sigcheck is similar to intrcheck() but sets an exception when an
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
3 interrupt occurs. It can't be in the intrcheck.c file since that
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 file (and the whole directory it is in) doesn't know about objects
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 or exceptions. It can't be in errors.c because it can be
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 overridden (at link time) by a more powerful version implemented in
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 signalmodule.c. */
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
8
5373
5880384d7c71 Quickly renamed the remaining files -- this directory is done.
Guido van Rossum <guido@python.org>
parents: 4503
diff changeset
9 #include "Python.h"
1660
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
10
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 /* ARGSUSED */
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 int
13658
f79434ee41fa Mass ANSIfication of function definitions. Doesn't cover all 'extern'
Thomas Wouters <thomas@python.org>
parents: 13256
diff changeset
13 PyErr_CheckSignals(void)
1660
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 {
5373
5880384d7c71 Quickly renamed the remaining files -- this directory is done.
Guido van Rossum <guido@python.org>
parents: 4503
diff changeset
15 if (!PyOS_InterruptOccurred())
1660
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
16 return 0;
5373
5880384d7c71 Quickly renamed the remaining files -- this directory is done.
Guido van Rossum <guido@python.org>
parents: 4503
diff changeset
17 PyErr_SetNone(PyExc_KeyboardInterrupt);
1660
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
18 return -1;
ffd495bacbd4 Replace intrcheck() by sigcheck() in many places.
Guido van Rossum <guido@python.org>
parents:
diff changeset
19 }