forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7bc84a1
committed
Fix kqueue support under debugger on macOS.
While running under a debugger, macOS's getppid() can return thedebugger's PID. That could cause a backend to exit because it falselybelieved that the postmaster had died, since commit815c2f0.Continue to use getppid() as a fast postmaster check after adding thepostmaster's PID to a kqueue, to close a PID-reuse race, but doublecheck that it actually exited by trying to read the pipe. The new checkisn't reached in the common case.Reported-by: Alexander Korotkov <a.korotkov@postgrespro.ru>Discussion:https://postgr.es/m/CA%2BhUKGKhAxJ8V8RVwCo6zJaeVrdOG1kFBHGZOOjf6DzW_omeMA%40mail.gmail.com1 parente6c178b commit7bc84a1
1 file changed
+10
-1
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1094 | 1094 |
| |
1095 | 1095 |
| |
1096 | 1096 |
| |
1097 |
| - | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1098 | 1106 |
| |
| 1107 | + | |
1099 | 1108 |
| |
1100 | 1109 |
| |
1101 | 1110 |
| |
|
0 commit comments
Comments
(0)