Every process has to have a parent process (to collect exit status, at the very least). see man 2 wait. If a parent process dies, its children are sent a SIGHUP signal (see man 7 signal). SIGHUP is a catchable signal, but if the child doesn't catch it, the default action is to kill the child process.
Every process has to have a parent process (to collect exit status, at the very least). see
man 2 wait
. If a parent process dies, its children are sent aSIGHUP
signal (seeman 7 signal
).SIGHUP
is a catchable signal, but if the child doesn't catch it, the default action is to kill the child process.See
man nohup
to keep things going.To execute a background job and keep it running after terminal is closed use: