docs | |
tests | |
package |
CFFI bindings for signalfd. Interface is mostly the same as https://pypi.python.org/pypi/python-signalfd
- Free software: BSD license
pip install signalfd
python
import signalfd
fd = signalfd.signalfd(-1, [signal.SIGUSR1], signalfd.SFD_CLOEXEC) try: signalfd.sigprocmask(signalfd.SIG_BLOCK, [signal.SIGUSR1])
- while True:
si = signalfd.read_siginfo(fd) print(si.ssi_signo)
- finally:
os.close(fd)
https://python-signalfd.readthedocs.org/
To run the all tests run:
tox