As far as I know, nohup signals ignores SIGHUP signal sent by the terminal to the application but the application can change that.
I'm running Spotify through the command nohup spotify & and when I close the terminal by clicking the X symbol on the top corner of the terminal, so does Spotify.
Does this mean Spotify changes it so that it won't ignore SIGHUP signal?
However, when I close the terminal usingexitcommand, Spotify remains working.Is the terminal sent different signal when
exitcommand is called? I'd expect the Spotify to terminate as well.
P.S. I am using Elementary OS Loki and xterm.
/dev/null(ditto for its input).disown, e.g.nohup spotify & disown(probablynohupisn't even needed then) as a workaround.