Re: Win32 rename()/unlink() questions
От | Mike Mascari |
---|---|
Тема | Re: Win32 rename()/unlink() questions |
Дата | |
Msg-id | 3D896127.2070103@mascari.com обсуждение исходный текст |
Ответ на | Re: Win32 rename()/unlink() questions ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>) |
Список | pgsql-hackers |
Christopher Kings-Lynne wrote: >>On Wed, Sep 18, 2002 at 08:01:42PM -0400, Bruce Momjian wrote: >> >> >>>Second, when you unlink() a file on Win32, do applications continue >>>accessing the old file contents if they had the file open before the >>>unlink? >> >>I'm pretty sure it errors with 'file in use'. Pretty ugly, huh? > > > Yeah - the windows filesystem is pretty poor when it comes to multiuser > access. That's why even as administrator I cannot delete borked files and > people's profiles and stuff off our NT server - the files are always 'in > use'. Even if you kick all users off, reboot the machine, do whatever. > It's terrible.>> Chris> Yep. That's why often it requires rebooting to uninstall software. How can the installer remove itself? Under Windows 95/98/ME, you have to manually add entries to WININIT.INI. With Windows NT/XP/2K, MoveFileEx() with a NULL target and the MOVEFILE_DELAY_UNTIL_REBOOT flag will add the appropriate entries into the system registry so that the next time the machine reboots it will remove the files specified. Its a real pain and a real hack of an OS. Mike Mascari mascarm@mascari.com
В списке pgsql-hackers по дате отправления: