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/Lennartwareparty May 29 '16
Why is it a can of worms or bad idea?
Now people will just stay logged in, this is like saying you can only have a process running if it has a file descriptor open, the moment it closes its last file descriptor the process is killed. So people will just keep a file descriptor open to avoid that.
A login is nothing more than a conduit opened to a computer for human interaction which you close as a courtesy when you're done to free up resources for other users. To say that you can't have any processes running in between those conduits is as silly as saying all things in your house have to be cleaned out when you aren't home.
Yeh, the difference being that very few people jump of bridges and people fall off them accidentally way more often while letting processes run when you aren't logged in is super common.
you assume a-priori that it is "bad behaviour" there is nothing bad about letting processes run after you logged out.
This is like saying that if you work in a lab, you should destroy all your petri dishes in the lab when you're not in the lab going to the bathroom or home rather than letting it continue while you're at home. That's stupid. There is absolutely nothing objectionable about user processes continuing to run when the user is not logged in. A great many deal of processes require no interaction, log ins are for processes that require human interaction. And processes that do, id est those who connect to a graphical server or have a controlling terminal, are already told to exist upon logout.