Interesting discussion on ETXTBSY
Interesting discussion on ETXTBSY
Posted Aug 24, 2021 16:23 UTC (Tue) by immibis (subscriber, #105511)In reply to: Interesting discussion on ETXTBSY by NYKevin
Parent article: The shrinking role of ETXTBSY
Then the kernel should do it instead. Mapping an executable or library file should be a copy-on-write operation. When the underlying file is replaced the kernel should use the old pages for the existing mappings and the new pages for new mappings.
Of course, that's probably impossible in current Linux.
