Skip to main content

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

1.0.0 (2024-11-02)

  • Fixed build issue caused by incorrect sigset_t size calculation.

  • Updated various project boilerplate.

  • Dropped support for EOL Python 3.8.

0.4.0 (2015-08-25)

  • Corrected return value for sigprocmask.

0.3.0 (2015-08-24)

  • Corrected error handling in signalfd and sigprocmask wrappers.

0.2.0 (2015-08-24)

  • Changed read_siginfo so it raises IOError in case is used with a file object and .readinto() would return None (not enough data available).

0.1.0 (2015-08-23)

  • First release on PyPI.

Metadata

Release files for signalfd 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for signalfd 1.0.0
File Size Uploaded Provenance Actions
signalfd-1.0.0.tar.gz 17.8 kB Without provenance Details for signalfd-1.0.0.tar.gz

Release files / signalfd-1.0.0.tar.gz

Download URL signalfd-1.0.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e628098bcad8cdd74c6b4f41695bccbde69989c989378b7a308d92328aeccbb2
BLAKE2b-256 checksum
How to use checksums
bdea7acb77768db7c8caea58946328e1952aa274f95c7f62e55304fd669f8bd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Security for signalfd 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page