this post was submitted on 24 Jul 2025
72 points (100.0% liked)

Linux

8740 readers
375 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] ALERT@sh.itjust.works 3 points 1 week ago (6 children)

how can they relaunch with the new binary without relaunching the binary? what's behind this Linux magic?

[–] refalo@programming.dev 3 points 1 week ago (1 children)
[–] ALERT@sh.itjust.works 1 points 1 week ago (2 children)

yes, and I understood nothing as a stupid Windows user

[–] refalo@programming.dev 4 points 1 week ago* (last edited 1 week ago)

Basically instead of launching completely new processes for each tab, which uses the (now updated/different) binary on disk, it uses a small secondary process that stays running the whole time the browser is open, and new processes are forked from that one, which makes them all use the same in-memory copy of the old process even after the program is updated.

This only works on *nix because you can't overwrite binaries on Windows that are in use... but Linux keeps the old binary in memory the whole time, so it doesn't care if you replace it, as it won't be used until you restart the program.

So it doesn't actually update anything at all while it's running.

[–] Railcar8095@lemmy.world 3 points 1 week ago

It uses the same mechanism as PS3 did with the DLC. All new versions of firefox are in the binary you download today, their features are unlocked periodically.

/s

load more comments (4 replies)