aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-09-10 09:58:21 +0000
committerBruce Momjian <bruce@momjian.us>2004-09-10 09:58:21 +0000
commit777687c6de4ffe4f2f772c5ccc844f4e0efdebe6 (patch)
tree3af12ef2b88425c8cdf963000eef3116643232f2
parente2e1a0cc710dd89ba23fd989243864d62cf08d72 (diff)
downloadpostgresql-777687c6de4ffe4f2f772c5ccc844f4e0efdebe6.tar.gz
postgresql-777687c6de4ffe4f2f772c5ccc844f4e0efdebe6.zip
Add mention loops over unlink/rename might not be needed.
-rw-r--r--src/port/dirmod.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index f2913b9f915..d2b51716ed3 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -10,7 +10,7 @@
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.25 2004/09/10 09:53:08 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/dirmod.c,v 1.26 2004/09/10 09:58:21 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -68,6 +68,7 @@ pgrename(const char *from, const char *to)
{
int loops = 0;
+ /* Is this looped even necessary? */
#if defined(WIN32) && !defined(__CYGWIN__)
while (!MoveFileEx(from, to, MOVEFILE_REPLACE_EXISTING))
#endif
@@ -113,6 +114,7 @@ pgunlink(const char *path)
{
int loops = 0;
+ /* Is this looped even necessary? */
while (unlink(path))
{
if (errno != EACCES)