forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4bd9de3
committed
Fix elog(FATAL) before PostmasterMain() or just after fork().
Since commit97550c0, these failed with"PANIC: proc_exit() called in child process" due to uninitialized orstale MyProcPid. That was reachable if close() failed inClosePostmasterPorts() or setlocale(category, "C") failed, bothunlikely. Back-patch to v13 (all supported versions).Discussion:https://postgr.es/m/20241208034614.45.nmisch@google.com1 parent67ef403 commit4bd9de3
File tree
4 files changed
+6
-4
lines changed- src
- backend
- main
- postmaster
- port
4 files changed
+6
-4
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| 35 | + | |
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| |||
96 | 97 |
| |
97 | 98 |
| |
98 | 99 |
| |
| 100 | + | |
99 | 101 |
| |
100 | 102 |
| |
101 | 103 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
| |||
66 | 67 |
| |
67 | 68 |
| |
68 | 69 |
| |
| 70 | + | |
69 | 71 |
| |
70 | 72 |
| |
71 | 73 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2024 | 2024 |
| |
2025 | 2025 |
| |
2026 | 2026 |
| |
2027 |
| - | |
| 2027 | + | |
2028 | 2028 |
| |
2029 | 2029 |
| |
2030 | 2030 |
| |
2031 | 2031 |
| |
2032 | 2032 |
| |
2033 | 2033 |
| |
2034 |
| - | |
2035 | 2034 |
| |
2036 | 2035 |
| |
2037 | 2036 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
78 |
| - | |
| 77 | + | |
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
|
0 commit comments
Comments
(0)