3 Aug
2010
3 Aug
'10
11:04 a.m.
On Mon, 2010-08-02 at 22:39 -0600, Tavian Barnes wrote:
Imagine the story with a different daemon: SSH. You ssh into your box, su, and pacman -Syu. Halfway through the upgrade, openssh gets updated, which automatically restarts the server, which SIGHUPs pacman, which is left in an inconsistent state.
OpenSSH is designed to keep its connection alive during restarts. You can even stop sshd without losing connection, as long as the rc.d script is not buggy (we had a buggy script that would kill all child processes too a while ago...)