In Why is chromium-browser killed when I close the terminal despite nohup?, I wrote that in a Terminal emulator tab, I ran
$ nohup chromium-browser &
When I close the terminal tab, chromium-browser also exits. Mark replied it was because chromium-browser overrides the action of SIGHUP from ignore to default (terminate).
When I repeat the above with disown -h
in place of nohup
,
$ chromium-browser & disown -h
why doesn't chromium-browser terminate when I close its terminal tab? (Note that disown -h
doesn't remove the chromium-browser process from the job list in the shell, so I think the chromium-browser process still receives SIGHUP from the shell)
Thanks.
help disown
in bash and read the definition of the-h
option 50 times ;-) – Nov 27 '18 at 02:03