Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61b733b

Browse files
committed
2 parents 3b7fb5d + da8bf6d commit 61b733b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utils/remote.c

+7-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
#include <sys/wait.h>
66
#include <signal.h>
77

8+
#ifdef WIN32
9+
#define __thread __declspec(thread)
10+
#else
11+
#include <pthread.h>
12+
#endif
13+
814
#include "pg_probackup.h"
915
#include "file.h"
1016

@@ -52,7 +58,7 @@ static int split_options(int argc, char* argv[], int max_options, char* options)
5258
return argc;
5359
}
5460

55-
static int child_pid;
61+
static __thread int child_pid;
5662

5763
#if 0
5864
static void kill_child(void)

0 commit comments

Comments
 (0)