ZSH, nohup and background process that lasts...

Thursday, November 27, 2014 · 1 minute · 92 words

When I switched to ZSH, and let BASH behind, I missed some behaviour : one of them was the ability to quit my terminal while some jobs are still alive.

In ZSH, I get a message like this if I exit with running jobs :

zsh you have running jobs

If I exit again, my jobs are killed. But zsh accept some useful option to overide this :

setopt NO_HUP
setopt NO_CHECK_JOBS

First one is for not killing process after terminal exit, and second one is for not warning you about it.

linux