A pure Python wrapper of signalfd(2)
Project description
pysignalfd
A pure Python wrapper of signalfd(2).
Installation
pip install pysigalfd
Usage
import signal
import pysignalfd
sigs = [signal.SIGTERM, signal.SIGHUP]
signal.pthread_sigmask(signal.SIG_BLOCK, sigs)
fd = pysignalfd.signalfd(sigs, CLOEXEC=True, NONBLOCK=False)
for signum in pysignalfd.parse_siginfo(fd):
print(signum)
Similar Tools
Both module relies on "Python.h" to extend, by which there is a concern that installation might fail on the disparate Linux environments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysignalfd-0.0.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
pysignalfd-0.0.1-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for pysignalfd-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334cc0e54daa18ca8ae685db7c64f73a79bd1c9b5e926dcc8f9a8017461b0884 |
|
MD5 | 95f85a7bb8d2d77028a5cf1490bb2ae3 |
|
BLAKE2b-256 | da36463a6e1e826d09f830173d69c05a34f0e1e7d5a5b3a169c279b5e97a9295 |