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.

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
signalfd-1.0.0.tar.gz 17.8 kB Details

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.4.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

0

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