r/linux • u/rain5 • May 28 '16
systemd developer asks tmux (and other programs) to add systemd specific code
https://github.com/tmux/tmux/issues/428
359
Upvotes
r/linux • u/rain5 • May 28 '16
View all comments
Show parent comment
5
u/MertsA May 29 '16
Either way, the correct fix is not to just assume that any hung program is supposed to be hung up. The user can currently just start it outside of their scope but it's unreasonable to expect the user to manually run screen and tmux in their own scope. If you asked anyone, Linux user, Windows user, OSX, etc what happens if they log into a computer, run some software, and then logout, they are all going to tell you that the software is closed. That's the accepted behavior. Historically Linux hasn't had anything that would terminate processes that didn't exit cleanly when they were supposed to. Now that's fixed but there's nothing to indicate whether or not a process is willfully sticking around after logout or if it's just broken. How is it a terrible idea for screen or tmux to put in some code in their existing platform compatibility code to tell systemd to run it in it's own scope? That's what that platform specific code is there for, to abstract away all platform specific features.