News for hackers. Stuff that matters.
Re:Don't tell people to turn off Windows Update by dozzie on Monday May 15, 2017 @06:42AM (#14340539)
> It's an interesting problem. Live updates without requiring a restart is going to be a complex task, how do you reload a library in use by a program without crashing it?

Well, how do Linux and other unices do that?

Re:Don't tell people to turn off Windows Update by cesarb on Monday May 15, 2017 @06:51AM (#14340592)
They don't, the program keeps using the old library until it's restarted. Some Linux distributions restart daemons when they or their dependent libraries are updated, but that can't be done for desktop software. Firefox sometimes notices it's been updated and pops up a warning with a "Restart Firefox" button (which keeps the session state), though AFAIK it's only for updates to Firefox itself, not for any of the libraries it might have loaded.

If you never restart a Linux desktop (or at least log out), you will be running outdated libraries, even if you run updates in the background.

(The best solution would be what Android does, where every program is supposed to know how to checkpoint itself, and they are forcefully restarted on a upgrade, transparently to the user. But even there, updates to system libraries still require a full reboot.)

Re:Don't tell people to turn off Windows Update by Qwertious on Monday May 15, 2017 @11:51AM (#14342512)
I believe this is solved by NixOS, by the way.
Re:Don't tell people to turn off Windows Update by pawadu on Monday May 15, 2017 @06:47AM (#14340569)
software: can upgrade binaries and libraries without affecting already running programs

services: they are specifically designed to be updated and restarted

kernel: https://en.wikipedia.org/wiki/Ksplice

Re:Don't tell people to turn off Windows Update by dozzie on Monday May 15, 2017 @06:51AM (#14340587)
> services: they are specifically designed to be updated and restarted

I write plenty of daemons (you call them "services"). What exactly do I write specifically for them to be able to continue to run when a library is upgraded?

Re:Don't tell people to turn off Windows Update by pawadu on Monday May 15, 2017 @07:13AM (#14340690)
Sorry, I meant things like dependency management among services.

I don't think systemd supports what you are asking but it shouldn't be too hard to write a service that restarts other services if their shared libraries change?

Re:Don't tell people to turn off Windows Update by Rondom on Monday May 15, 2017 @02:11PM (#14343712)
https://github.com/liske/needrestart is quite useful. It even has heuristics for updates to Python code, Java classes...
Re:Don't tell people to turn off Windows Update by Xylakant on Monday May 15, 2017 @07:09AM (#14340673)
Nothing. They just keep using the old version of the lib and thus potentially vulnerable.
Re:Don't tell people to turn off Windows Update by dozzie on Monday May 15, 2017 @07:13AM (#14340687)
Yes, but they continue to run while the library is being updated. That's the point. They can get restarted once the update process finishes, which takes a lot less time than be shut down, wait for update, and be started again.

From what I know, Windows doesn't allow a library to be replaced until it's not used by anything, which is more intrusive and is IMO the root cause (though indirect) why people hate updating Windows.

Re:Don't tell people to turn off Windows Update by astrobe_ on Monday May 15, 2017 @07:21AM (#14340722)

    gcc --static