forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit774ba68
Allow parent's WaitEventSets to be freed after fork().
An epoll fd belonging to the parent should be closed in the child. Akqueue fd is automatically closed by fork(), but we should still adjustour counter. For poll and Windows systems, nothing special is required.On all systems we free the memory.No caller yet, but we'll need this if we start using WaitEventSet in thepostmaster as planned.Reviewed-by: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/CA%2BhUKG%2BZ-HpOj1JsO9eWUP%2Bar7npSVinsC_npxSy%2BjdOMsx%3DGg%40mail.gmail.com1 parent5d8c5a1 commit774ba68
2 files changed
+18
-0
lines changedLines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
869 | 869 |
| |
870 | 870 |
| |
871 | 871 |
| |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
872 | 889 |
| |
873 | 890 |
| |
874 | 891 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
| 178 | + | |
178 | 179 |
| |
179 | 180 |
| |
180 | 181 |
| |
|
0 commit comments
Comments
(0)