Skip to content

-k option kills process but triggers error message #236

Open
@finnmerlett

Description

@finnmerlett

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!

Activity

gustavohenke

gustavohenke commented on Jul 17, 2020

@gustavohenke
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

Yuri6037 commented on Aug 28, 2020

@Yuri6037

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

gustavohenke

gustavohenke commented on Sep 7, 2020

@gustavohenke
Member

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

Yuri6037

Yuri6037 commented on Sep 7, 2020

@Yuri6037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      -k option kills process but triggers error message · Issue #236 · open-cli-tools/concurrently