forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit70516a1
committed
Handle EACCES errors from kevent() better.
While registering for postmaster exit events, we have to handle a coupleof edge cases where the postmaster is already gone. Commit815c2f0missed one: EACCES must surely imply that PostmasterPid no longerbelongs to our postmaster process (or alternatively an unexpectedpermissions model has been imposed on us). Like ESRCH, this should betreated as a WL_POSTMASTER_DEATH event, rather than being raised withereport().No known problems reported in the wild. Per code review from Tom Lane.Back-patch to 13.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/3624029.1602701929%40sss.pgh.pa.us1 parentd7eb52d commit70516a1
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1148 | 1148 |
| |
1149 | 1149 |
| |
1150 | 1150 |
| |
1151 |
| - | |
| 1151 | + | |
| 1152 | + | |
1152 | 1153 |
| |
1153 | 1154 |
| |
1154 | 1155 |
| |
|
0 commit comments
Comments
(0)