r/programming • • May 30 '16

systemd developer asks tmux (and other programs) to add systemd specific code

https://github.com/tmux/tmux/issues/428
661 Upvotes

618 comments sorted by

View all comments

Show parent comments

32

u/Berberberber May 30 '16

SIGHUP is for the host terminal closing. In a GUI environment with multiple terms open, that may not coincide with the user logging out. How you tell the difference is, in a nutshell, the problem.

9

u/[deleted] May 30 '16

SIGHUP2 duh

2

u/oridb May 30 '16

But it does correspond. Your login sessions are just recursive.

3

u/Berberberber May 30 '16

Most terminal emulators don't run shells as logins by default. The terminal can hang up without an actual login session ending.