blob: cc8b21e908e7c2131cd5fd001e6877fd3fc9978f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
--- contrib/libs/grpc/src/core/lib/event_engine/forkable.cc (index)
+++ contrib/libs/grpc/src/core/lib/event_engine/forkable.cc (working tree)
@@ -29,6 +29,25 @@
#include "src/core/lib/config/config_vars.h"
+#include "src/core/lib/debug/trace.h"
+
+namespace grpc_event_engine {
+namespace experimental {
+
+extern grpc_core::TraceFlag grpc_trace_fork;
+
+#define GRPC_FORK_TRACE_LOG(format, ...) \
+ do { \
+ if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_fork)) { \
+ gpr_log(GPR_DEBUG, "[fork] " format, __VA_ARGS__); \
+ } \
+ } while (0)
+
+#define GRPC_FORK_TRACE_LOG_STRING(format) GRPC_FORK_TRACE_LOG("%s", format)
+
+}
+}
+
namespace grpc_event_engine {
namespace experimental {
--- contrib/libs/grpc/src/core/lib/event_engine/forkable.h (index)
+++ contrib/libs/grpc/src/core/lib/event_engine/forkable.h (working tree)
@@ -19,24 +19,10 @@
#include <memory>
#include <vector>
-#include <grpc/support/log.h>
-
-#include "src/core/lib/debug/trace.h"
namespace grpc_event_engine {
namespace experimental {
-extern grpc_core::TraceFlag grpc_trace_fork;
-
-#define GRPC_FORK_TRACE_LOG(format, ...) \
- do { \
- if (GRPC_TRACE_FLAG_ENABLED(grpc_trace_fork)) { \
- gpr_log(GPR_DEBUG, "[fork] " format, __VA_ARGS__); \
- } \
- } while (0)
-
-#define GRPC_FORK_TRACE_LOG_STRING(format) GRPC_FORK_TRACE_LOG("%s", format)
-
// We've faced flickering crash in grpc during fork.
// Crash is observed in different places before 'execv' is called.
// It is mentioned in https://man7.org/linux/man-pages/man2/fork.2.html
|