Sometimes when you try to log out, you'll get the rather cryptic message
There are stopped jobs
This means that you have left some suspended jobs hanging around, and you should finish them off before you log out.
to get a list of stopped jobs.
Bring them to the foreground one at a time (with fg %1
and so on) and exit each normally.
You can also type
This will kill job number 3, causing it to exit prematurely.
If you get stuck or are in a hurry, you can use the logout or exit command twice in a row and you'll be able to log out in spite of your stopped jobs. The jobs will be killed automatically by the shell. You really should
clean them up yourself though, you untidy git.
Oh, and if you have background jobs
running (as opposed to stopped jobs
), they will continue to run after you log out.