Comments (4)
Hey @etianen thanks for the issue. It sounds like a bug. PRs welcome to fix it
from parallelshell.
Out of interest, why does parellelshell choose to terminate child processes
with SIGINT rather than SIGTERM?
I think the correct behaviour here is to listen for both SIGINT and
SIGTERM, then stop the child processes with the same signal. I'm not
totally certain, however. I think you could also make a case for
responding to both SIGINT and SIGTERM, but always sending SIGTERM to child
processes (it's the traditional kill signal).
On Mon, 19 Oct 2015 at 09:54 Keith Cirkel [email protected] wrote:
Hey @etianen https://github.com/etianen thanks for the issue. It sounds
like a bug. PRs welcome to fix it [image:π ]β
Reply to this email directly or view it on GitHub
#39 (comment)
.
from parallelshell.
SIGINT is used when a terminal sends Ctrl+C. We close apps down because that's what you'd expect from sending Ctrl+C. I guess we should probably send all signals to the respective processes though, as you suggest.
FYI, if you submit a PR to this code, you should know that mysticatea/npm-run-all#10 exists and that parallelshell may be deprecated soon, in favour of consolidating it with other libs (see mysticatea/npm-run-all#10 for more). While I'm happy to release new versions in the interim - this is the end goal of parallelshell (to be subsumed/consumed into npm-run-all).
from parallelshell.
Hmm, I see, thanks for the heads up!
I'm not sure I'll bother with the PR, in that case. I've been using
parallelshell as a quick process manager hack, but I can make do with bash
builtins in the meanwhile. :)
On Mon, 19 Oct 2015 at 10:11 Keith Cirkel [email protected] wrote:
SIGINT is used when a terminal sends Ctrl+C. We close apps down because
that's what you'd expect from sending Ctrl+C. I guess we should probably
send all signals to the respective processes though, as you suggest.FYI, if you submit a PR to this code, you should know that
mysticatea/npm-run-all#10
mysticatea/npm-run-all#10 exists and that
parallelshell may be deprecated soon, in favour of consolidating it with
other libs (see mysticatea/npm-run-all#10
mysticatea/npm-run-all#10 for more). While
I'm happy to release new versions in the interim - this is the end goal of
parallelshell (to be subsumed/consumed into npm-run-all).β
Reply to this email directly or view it on GitHub
#39 (comment)
.
from parallelshell.
Related Issues (20)
- Why BrowserSync over Webpack-dev-server? HOT 1
- Issue with assigning variables HOT 5
- Feature request: Prefix output with (colored?) indicator of which process it came from HOT 1
- Suggestions for why parallelshell breaks node-notifier?
- Some output goes to the wrong terminal tab with two tabs open HOT 4
- Same argument passed to all shells? HOT 1
- Exit code is 0 when first command succeeds and second fails HOT 4
- fails on node8 HOT 3
- child_process throwing error ('"cwd" must be a string') HOT 24
- /usr/bin/env: βnode\rβ: No such file or directory ... HOT 9
- Allow 3.0 to be backwards compatible with < Node 8 HOT 6
- TypeError: "cwd" must be a string HOT 3
- New release? HOT 5
- Node 10.x version check fails HOT 9
- child_process throwing error ('"cwd" must be a string') HOT 2
- ERR_INVALID_ARG_TYPE error for Node v10.5.0 HOT 7
- The "options.cwd" property must be of type string. Received type function HOT 36
- Please do a release with the version check fork! HOT 7
- The "options.cwd" property must be of type string. Received type function HOT 1
- npm ERR! code ELIFECYCLE HOT 2
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 parallelshell.