forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2af53f3
committed
After closing frontend socket, set MyProcPort->sock = -1 to ensure that
subsequent I/O attempts fail cleanly. I'm speculating about failurescenarios in which we do pq_close, then something in a proc_exit routineopens a file (re-using that kernel FD number), then something elsefails and tries to write an elog message to the frontend ... messageends up in opened file, oops. No known examples of this but it seemslike a potential hole.1 parent39725e5 commit2af53f3
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| 147 | + | |
147 | 148 |
| |
| 149 | + | |
| 150 | + | |
| 151 | + | |
148 | 152 |
| |
149 | 153 |
| |
150 | 154 |
| |
|
0 commit comments
Comments
(0)