Commit d1c85eb
BUG: Fix race between initSignalHandler() and cfgInitOnce()
Configuration gets on first Get() through cfgInitOnce.Do(), however if
any signal gets received during initalization and before
InitWithConfiguration() that initializes logging, log calls will race
with ongoing log initialization. Patch moves cfg.initSignalHandler()
below log.InitWithConfiguration().1 parent 60a6beb commit d1c85eb
File tree
3 files changed
+3
-2
lines changed- cmd/dataplaneapi
- configuration
3 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments