pysignalfd 0.0.1

Last updated:

0 purchases

pysignalfd 0.0.1 Image
pysignalfd 0.0.1 Images
Add to Cart

Description:

pysignalfd 0.0.1

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

python-signalfd
signalfd

Both module relies on "Python.h" to extend, by which there is a concern that installation might fail on the disparate Linux environments.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.