We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9c6d72 commit ba08155Copy full SHA for ba08155
contrib/pg_upgrade/exec.c
@@ -102,7 +102,7 @@ static DWORD mainThreadId = 0;
102
103
for (iter = 0; iter < 4 && log == NULL; iter++)
104
{
105
- sleep(1);
+ pg_usleep(1000000); /* 1 sec */
106
log = fopen(log_file, "a");
107
}
108
contrib/pg_upgrade/pg_upgrade.h
@@ -83,7 +83,6 @@ extern char *output_files[];
83
#define pg_copy_file CopyFile
84
#define pg_mv_file pgrename
85
#define pg_link_file win32_pghardlink
86
-#define sleep(x) Sleep(x * 1000)
87
#define PATH_SEPARATOR '\\'
88
#define RM_CMD "DEL /q"
89
#define RMDIR_CMD "RMDIR /s/q"
0 commit comments