I have an embedded system, on which I do telnet and then I run an application in background:
./app_name &
Now if I close my te
When you close the terminal, shell sends SIGHUP to all background processes – and that kills them. This can be suppressed in several ways, most notably:
When you run program with nohup it catches SIGHUP and redirect program output.
$ nohup app &
disown tells shell not to send SIGHUP
$ app &
$ disown
It is dependent on your shell. Above applies at least for bash.