forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7b0199a
Initialize ListenSocket array earlier.
After commitb0bea38, syslogger prints 63 warnings about failing toclose a listen socket at postmaster startup. That's because thesyslogger process forks before the ListenSockets array is initialized,so ClosePostmasterPorts() calls "close(0)" 64 times. The first callsucceeds, because fd 0 is stdin.This has been like this since commit9a86f03 in version 13, whichmoved the SysLogger_Start() call to before initializing ListenSockets.We just didn't notice until commitb0bea38 added the LOG message.Reported by Michael Paquier and Jeff Janes.Author: Michael PaquierDiscussion:https://www.postgresql.org/message-id/ZOvvuQe0rdj2slA9%40paquier.xyzDiscussion:https://www.postgresql.org/message-id/ZO0fgDwVw2SUJiZx@paquier.xyz#482670177eb4eaf4c9f03c1eed963e5fBackpatch-through: 131 parent276115f commit7b0199a
1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
1144 | 1155 | | |
1145 | 1156 | | |
1146 | 1157 | | |
| |||
1175 | 1186 | | |
1176 | 1187 | | |
1177 | 1188 | | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | 1189 | | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
1187 | 1190 | | |
1188 | 1191 | | |
1189 | 1192 | | |
| |||
0 commit comments
Comments
(0)