Re:Running bash commands in the background properly
by xyzzy_plugh on Sunday December 07, 2014 @04:12AM
(#8711719)
Understanding whether background jobs get killed (via SIGHUP) or orphaned is not obvious without reading about the huponexit shopt. I've found some recent distros to not enable huponexit by default for login shells, and so this isn't always an issue.
More importantly, understanding how your jobs behave when your SSH session is killed can be a huge timesaver.
More importantly, understanding how your jobs behave when your SSH session is killed can be a huge timesaver.