GithubHelp home page GithubHelp logo

Comments (3)

kevinconway avatar kevinconway commented on August 21, 2024

@lengelberts I believe the issue is that the system, by default, is setting signal handlers for signals that are not supported in Windows. Here are the signals for which we register handlers:

kill_signals = (
        2,  # SIGINT
        3,  # SIGQUIT
        6,  # SIGABRT
        15,  # SIGTERM
)

but Windows does not support SIGQUIT (https://docs.python.org/2/library/signal.html#signal.signal).

One possible way to start would be to make a subclass of the signal handler that uses a different set of signals even if that is the same set minus SIGQUIT. I'm not sure what other changes would need to happen for Windows support as I originally made this library with the intent on managing daemons in a unix/linux type of environment.

from daemons.

lengelberts avatar lengelberts commented on August 21, 2024

Thank you @kevinconway for your quick reply! This seems to be a reasonable explanation indeed. In that case I will for now just avoid using Windows.

from daemons.

AckslD avatar AckslD commented on August 21, 2024

@kevinconway It might be nice to say in the setup.py that this package is only for MacOS and Unix. You can do this by for example adding

    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: Unix",
        "Operating System :: MacOS"
    ],

as an argument to setuptools.setup.

from daemons.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.