Standards, the kernel, and Postfix
Posted Aug 21, 2008 18:48 UTC (Thu) by
vmole (guest, #111)
In reply to:
Standards, the kernel, and Postfix by rwmj
Parent article:
Standards, the kernel, and Postfix
No, package managers should put the file in the proper directory with a unique name (e.g. foo.package_new) with proper permissions and ownership, and then rename(2) the proper name to the unique name. This way there's never a time when '/bin/foo' is anything but the proper old entry or the proper new entry, since rename(2) is atomic. Exisiting users of the file won't see the change - they've got an open descriptor to the old file, which remains on disk until the last open descriptor is closed.
(
Log in to post comments)