Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit777687c

Browse files
committed
Add mention loops over unlink/rename might not be needed.
1 parente2e1a0c commit777687c

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
intloops=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
intloops=0;
115116

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp