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
6
u/Lennartwareparty May 29 '16
Yeah, but shutting things that are interractive down is the default already:
Basically, a process is interactive if either:
in both cases when either the display session or the controlling terminal disappears, it should kill itself unless things go wrong.
What they is doing is saying that the old mechanism of dealing with this isn't good enough any more for some reason and a new mechanism that does pretty much the same thing needs to take its place, so all your old code communicating in the old way that it is not interactive will no longer wor and you're going to have to add systemd specific code which breaks with all of the other unixen to everything to stop systemd from killing your stuff.
Which is probably why distros disable this thing by default, what it does already exists and there is no need to change the interface.
People are also pointing out this might just be systemd running after GNOME's bugs. Apparently some GNOME things don't properly exit when the X server detaches. It would not surprise me if this is a bit of synergy since both projects are under the employ of the same company.