Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 777687c

Browse files
committed
Add mention loops over unlink/rename might not be needed.
1 parent e2e1a0c commit 777687c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/port/dirmod.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.25 2004/09/10 09:53:08 momjian Exp $
13+
* $PostgreSQL: pgsql/src/port/dirmod.c,v 1.26 2004/09/10 09:58:21 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -68,6 +68,7 @@ pgrename(const char *from, const char *to)
6868
{
6969
int loops = 0;
7070

71+
/* Is this looped even necessary? */
7172
#if defined(WIN32) && !defined(__CYGWIN__)
7273
while (!MoveFileEx(from, to, MOVEFILE_REPLACE_EXISTING))
7374
#endif
@@ -113,6 +114,7 @@ pgunlink(const char *path)
113114
{
114115
int loops = 0;
115116

117+
/* Is this looped even necessary? */
116118
while (unlink(path))
117119
{
118120
if (errno != EACCES)

0 commit comments

Comments
 (0)