News for hackers. Stuff that matters.
Re:Upgrading Executable on the Fly by jasonjayr on Tuesday January 04, 2022 @04:43PM (#29800969)
inetd style socket activation (iirc) forks a process for every connection.

So, simply replacing the binary on disk will cause all new connections going forward to use the new binary, while existing held connections (with in-memory references to the old binary's inode) will finish the operations. Once they are done and all references to that inode are gone, the blocks referencing the binary will be removed.

Re:Upgrading Executable on the Fly by wahern on Tuesday January 04, 2022 @05:26PM (#29801577)
> inetd style socket activation (iirc) forks a process for every connection.

inetd supports both process-per-connection and single process/multiple connections using the "nowait" and "wait" declarations, respectively. The former passes an accept'd socket, the latter passes the listening socket.

Re:Upgrading Executable on the Fly by tannhaeuser on Tuesday January 04, 2022 @06:48PM (#29802720)
CGI (apache's mod_cgi) has supported this since almost the beginning of the web as well. Deploying a new CGI is as simple as replacing the CGI binary.