this post was submitted on 24 Jul 2025
72 points (100.0% liked)
Linux
8740 readers
403 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
view the rest of the comments
how can they relaunch with the new binary without relaunching the binary? what's behind this Linux magic?
It doesn't launch the new binary at all. When the current process wants to create a new process, instead of doing fork+exec (which launches the new binary and wreaks havoc because versions now don't match), it simply tells the ForkServer (a different process running the old binary) to fork (split) itself.
Chromium also does this; they call their equivalent to ForkServer the zygote process and this article explains it really well.
Thank you, I feel smarter (no)!