Fix markup

This commit is contained in:
Andrew Svetlov 2013-08-10 02:35:07 +03:00
parent 6491413d94
commit 31c754206a
1 changed files with 7 additions and 7 deletions

View File

@ -721,17 +721,17 @@ module is supported on Windows.)
Signal callbacks
''''''''''''''''
- ``add_signal_handler(sig, callback, *args). Whenever signal ``sig``
is received, arrange for ``callback(*args)`` to be called.
- ``add_signal_handler(sig, callback, *args)``. Whenever signal
``sig`` is received, arrange for ``callback(*args)`` to be called.
Specifying another callback for the same signal replaces the
previous handler (only one handler can be active per signal). The
``sig`` must be a valid sigal number defined in the ``signal``
module. If the signal cannot be handled this raises an exception:
``ValueError`` if it is not a valid signal or if it is an uncatchable
signale (e.g. ``SIGKILL``), ``RuntimeError`` if this particular event
loop instance cannot handle signals (since signals are global per
process, only an event loop associated with the main thread can
handle signals).
``ValueError`` if it is not a valid signal or if it is an
uncatchable signale (e.g. ``SIGKILL``), ``RuntimeError`` if this
particular event loop instance cannot handle signals (since signals
are global per process, only an event loop associated with the main
thread can handle signals).
- ``remove_signal_handler(sig)``. Removes the handler for signal
``sig``, if one is set. Raises the same exceptions as