- Notifications
You must be signed in to change notification settings - Fork28
Commit47522ee
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 parent53c07db commit47522ee
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
| 1088 | + | |
| 1089 | + | |
1089 | 1090 | | |
1090 | 1091 | | |
1091 | 1092 | | |
| |||
0 commit comments
Comments
(0)