Re:Japan HP accidentally deleted 77TB data in Kyoto U. super...
by formerly_proven on Thursday December 30, 2021 @10:53AM
(#29737711)
On Unix/Linux you can't update a file mmaped for execution either - text files are busy.
[ Parent
| on HN ]
Re:Japan HP accidentally deleted 77TB data in Kyoto U. super...
by toast0 on Thursday December 30, 2021 @03:41PM
(#29741193)
I've updated .so files on FreeBSD while they're running. They weren't busy and a program which had it mmaped to run promptly crashed (my update wasn't intended to be hot loaded and wasn't crafted to be safe, although, it could have been if I knew it was possible). And now I won't forget why I should use install instead of cp (install unlinks before writing, by default, cp opens and overwrites the existing file)