Comments (4)
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.
Hey @nathan-fiscaletti, could you provide additional information:
- hapless version:
hap --version
- your OS
- content of the script if possible. If not I would like to know whether it spawns/forks/multiprocess etc within the script
from hapless.
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
from hapless.
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)
- How run Hapless with python 3 scripts? HOT 2
- License of this Project HOT 3
- Error: unable to setup input stream if trying to run commands in docker container HOT 1
- hap status errors out despite no running processes, uninstalling/reinstalling doesn't work, affects all environments HOT 6
- Specificy a custom aliases for process? HOT 1
- Read from $PATH for commands to run HOT 1
- How to Remove the Failed Processes/Only keep the running ones? HOT 3
- Install/build without using pip HOT 8
- [Bug] AttributeError: module 'os' has no attribute 'fork' HOT 1
- [Feature] Capture `stdout` and `stderr` and display it in the status HOT 3
- [Feature] Shorten hap name / use string distance algorithm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hapless.