Re: [gentoo-portage-dev] [gentoo-dev-portage] [PATCH] prevent world file corruption by writing atomically

2006-01-25 Thread Zac Medico
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Zac Medico wrote: Brian Harring wrote: the atomic writing of data in writedict could be gutted out to a derivative of the file class; via that, same underlying atomic update code for writedict and wordfile updates... Hmm, override the

[gentoo-portage-dev] [gentoo-dev-portage] [PATCH] prevent world file corruption by writing atomically

2006-01-24 Thread Zac Medico
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, There is dangerous handling of world file updates throughout portage. The attached patch wraps all world file updates in a write_atomic() function which is designed to prevent interprocess interference and prevent corruption when an 'out

Re: [gentoo-portage-dev] [gentoo-dev-portage] [PATCH] prevent world file corruption by writing atomically

2006-01-24 Thread Zac Medico
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian Harring wrote: the atomic writing of data in writedict could be gutted out to a derivative of the file class; via that, same underlying atomic update code for writedict and wordfile updates... Hmm, override the constructor and close