semvec/pypi-packages huggingface dataset:
signalfd 1.0.0
CFFI bindings for signalfd.
License: BSD-2-Clause
Requires Python: >=3.9

========
Overview
========



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
=====

.. sourcecode:: python

    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.