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.

Required fields*

3
  • 5
    You almost got it... job control is disabled by default when running a script, but you can enable it with set -m. It's a bit cleaner and simpler than using setsid every time you run a child. Commented Nov 3, 2014 at 18:31
  • @psusi Thanks for the tip! I only need to run one child, so it's no big deal. I now know where to look in the Bash manual though... Commented Nov 3, 2014 at 19:11
  • Ironically, I have the reverse problem where I want the parent to catch sigint, but it does not because of "clever pipe trickery." Also progress group -> process group Commented Mar 11, 2015 at 8:06