News for hackers. Stuff that matters.
Re:How We Designed for Performance and Scale by 0x0 on Wednesday June 10, 2015 @04:18PM (#9695005)
The irc client irssi has something like this in /upgrade where it spawns a new binary but passing along active socket connections and their associated irc room states, I believe
Re:How We Designed for Performance and Scale by lorenzhs on Wednesday June 10, 2015 @04:38PM (#9695180)
WeeChat definitely does this. I don't know whether irssi supports it as well. Too bad WeeChat can't keep TLS connections open on /upgrade though
Re:How We Designed for Performance and Scale by zobzu on Thursday June 11, 2015 @04:21AM (#9698390)
yeah weechat is one of the rare C apps to actually preserve state on upgrade (passes fds, saves state, load in new process, kill old process)

its not that hard to do if the program is made for this, even in C, its pretty hard to add when it isnt tho since you need a compat. layer.

Sometimes the new program simply has import functions for the old memory layout.