Mercurial > cpython-lru_cache-weakref
diff Include/pyerrors.h @ 44355:b89b0334372b legacy-trunk
Patch #1583 by Adam Olsen.
This adds signal.set_wakeup_fd(fd) which sets a file descriptor to
which a zero byte will be written whenever a C exception handler runs.
I added a simple C API as well, PySignal_SetWakeupFd(fd).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 19 Dec 2007 19:41:06 +0000 |
| parents | 3bc3f12cae28 |
| children | f11c00246fb5 |
line wrap: on
line diff
--- a/Include/pyerrors.h Wed Dec 19 18:13:31 2007 +0000 +++ b/Include/pyerrors.h Wed Dec 19 19:41:06 2007 +0000 @@ -238,6 +238,9 @@ PyAPI_FUNC(int) PyErr_CheckSignals(void); PyAPI_FUNC(void) PyErr_SetInterrupt(void); +/* In signalmodule.c */ +int PySignal_SetWakeupFd(int fd); + /* Support for adding program text to SyntaxErrors */ PyAPI_FUNC(void) PyErr_SyntaxLocation(const char *, int); PyAPI_FUNC(PyObject *) PyErr_ProgramText(const char *, int);
