Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • When I stop it with Ctrl+C I still see processes running in background. Commented Jul 30, 2018 at 7:17
  • 2
    @karsten - this is a different problem. Assuming you are using bash you can trap an exit condition (including Ctrl+C) and have the current and all child processes killed using trap "kill 0" EXIT Commented Jul 10, 2019 at 23:12
  • @Phil is correct. Since these are background processes, killing the parent process just leaves any child processes running. My example does not trap any signals, which can be added if necessary as Phil has stated. Commented Jul 11, 2019 at 15:40