forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b9cbf4
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 parent939b090 commit8b9cbf4
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 |
| |
| |||
109 | 110 |
| |
110 | 111 |
| |
111 | 112 |
| |
| 113 | + | |
112 | 114 |
| |
113 | 115 |
| |
114 | 116 |
| |
|
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 | |
---|---|---|---|
| |||
1899 | 1899 |
| |
1900 | 1900 |
| |
1901 | 1901 |
| |
1902 |
| - | |
| 1902 | + | |
1903 | 1903 |
| |
1904 | 1904 |
| |
1905 | 1905 |
| |
1906 | 1906 |
| |
1907 | 1907 |
| |
1908 | 1908 |
| |
1909 |
| - | |
1910 | 1909 |
| |
1911 | 1910 |
| |
1912 | 1911 |
| |
|
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)