Skip to main content

CFFI bindings for signalfd.

Project description

docs

Documentation Status

tests

Travis-CI Build Status Requirements Status
Coverage Status Coverage Status

package

PyPI Package latest release PyPI Package monthly downloads PyPI Wheel Supported versions Supported imlementations

CFFI bindings for signalfd. Interface is mostly the same as https://pypi.python.org/pypi/python-signalfd

  • Free software: BSD license

Installation

pip install signalfd

Usage

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)

Documentation

https://python-signalfd.readthedocs.org/

Development

To run the all tests run:

tox

Changelog

0.1.0 (2015-08-21)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

signalfd-0.1.0.tar.gz (10.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page