Skip to main content

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

  1. python-signalfd
  2. signalfd

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

Release files for pysignalfd 0.0.1

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

Source distribution (sdist)

Source distribution for pysignalfd 0.0.1
File Size Uploaded
pysignalfd-0.0.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysignalfd 0.0.1
File Interpreter ABI Platform
pysignalfd-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / pysignalfd-0.0.1.tar.gz

Download URL pysignalfd-0.0.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3dca14305eb2d7e71e1935cd9d7d5b28341e9fb25da235b09bd42c56e6179514
BLAKE2b-256 checksum
How to use checksums
238f27f598a38f8fbd9c0feabefefce1f32e223e0e1687637cbf6babe6a33abe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / pysignalfd-0.0.1-py3-none-any.whl

Download URL pysignalfd-0.0.1-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
334cc0e54daa18ca8ae685db7c64f73a79bd1c9b5e926dcc8f9a8017461b0884
BLAKE2b-256 checksum
How to use checksums
da36463a6e1e826d09f830173d69c05a34f0e1e7d5a5b3a169c279b5e97a9295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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