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

Commitda8bf6d

Browse files
committed
Make child_pid variable thread local
1 parent569144a commitda8bf6d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/utils/remote.c

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

8+
#ifdefWIN32
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
returnargc;
5359
}
5460

55-
staticintchild_pid;
61+
static__threadintchild_pid;
5662

5763
#if0
5864
staticvoidkill_child(void)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp