Giter Site home page Giter Site logo

Comments (4)

bmwant avatar bmwant commented on May 31, 2024 1

In a meanwhile you can test the fix by yourself by installing latest development branch

$ pip install git+https://github.com/bmwant/hapless.git

from hapless.

bmwant avatar bmwant commented on May 31, 2024

Hey @nathan-fiscaletti, could you provide additional information:

  1. hapless version: hap --version
  2. your OS
  3. content of the script if possible. If not I would like to know whether it spawns/forks/multiprocess etc within the script

from hapless.

bmwant avatar bmwant commented on May 31, 2024

Only two processes should be created:
one main for the hapless itself
second one for the process you actually need to execute
You can check your parent pid also by invoking hap status -v 1 or using something like pstree to see whether you third process is related in any way to previous two
Screen Shot 2022-11-16 at 1 56 30 PM

from hapless.

bmwant avatar bmwant commented on May 31, 2024

ok, I found the issue and it is related to the shell=True parameter and extra process being created for the shell itself (tried on Ubuntu 20.04). I have created a fix to kill child process as well and will release new version soon.

In a future release I do also plan to skip shell spawning altogether and just provide current environment directly to the subprocess.

from hapless.

Related Issues (12)

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.