Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-k option kills process but triggers error message #236

Open
finnmerlett opened this issue Jul 16, 2020 · 4 comments
Open

-k option kills process but triggers error message #236

finnmerlett opened this issue Jul 16, 2020 · 4 comments

Comments

@finnmerlett
Copy link

I'm using concurrently to run react-native start whilst I build my release app and install it on my phone. Using the -k option causes the react-native start to exit when the build finishes, as desired, but it exits with an error code which isn't very visually nice. Is there a way to cause the react-native start process to exit as cleanly as if you had hit ctrl-c?

Many thanks, and great module!

@gustavohenke
Copy link
Member

Not possible yet. -k is hardcoded to send SIGTERM, but I suppose it could be customised to send SIGINT instead, so

  • -k SIGINT -> sends SIGINT
  • -k -> sends SIGTERM

@Yuri6037
Copy link

In other words: this software should not be used as all automation scripts will miserably fail currently, nice!

@gustavohenke
Copy link
Member

Hey @Yuri6037, if you don't like this behaviour you're welcome to propose a pull request to change it 😊

@Yuri6037
Copy link

Yuri6037 commented Sep 7, 2020

Well I used modded a simpler tool: https://github.com/Yuri6037/parallelshell/blob/master/index.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants