Coder Social home page Coder Social logo

Comments (2)

festlv avatar festlv commented on July 29, 2024

I helped to debug a similar issue for a friend and arrived at similar conclusion.

I'm not that deep into writing C modules for python, but there has got to be a way to register C function which is being called when python interpreter quits.

Otherwise this behaviour at least has to be documented and workaround (see @mlv's comment on #19) should be provided to ignore legitimate signals- WINCH is just one of the signals whose default action is not to terminate.

from rpio.

maroc81 avatar maroc81 commented on July 29, 2024

I've also been bitten by this issue. My python application would randomly exit with no output or any indication why. I was finally able to consistently reproduce and it and traced it down to this issue.

My application has a number of threads so SIGCHILD would get sent by the children threads whenever they were interrupted. This seems to be another signal that by default should be ignored.

I'm really surprised that the author didn't catch this or even did it in the first place. The rest of his code works great. I wouldn't be able to do my project on the pi without since the pi only has one pwm.

from rpio.

Related Issues (20)

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.