diff options
author | Guido van Rossum <guido@python.org> | 2007-12-19 19:41:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-12-19 19:41:06 (GMT) |
commit | 02de8979ccc09d1ef5162f64dbc9e546dae2da4e (patch) | |
tree | c7dcc55af17aa2cfe72b60f48353abbb2033e774 /Include | |
parent | 80016c95554677cd172610501446b096edfb267c (diff) | |
download | cpython-02de8979ccc09d1ef5162f64dbc9e546dae2da4e.zip cpython-02de8979ccc09d1ef5162f64dbc9e546dae2da4e.tar.gz cpython-02de8979ccc09d1ef5162f64dbc9e546dae2da4e.tar.bz2 |
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).
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyerrors.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/pyerrors.h b/Include/pyerrors.h index a6ee840..73a0e36 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -238,6 +238,9 @@ PyAPI_FUNC(int) PyErr_WarnExplicit(PyObject *, const char *, 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); |