git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1f0019d) | patch
Allow parent's WaitEventSets to be freed after fork().
2022年12月23日 07:26:52 +0000 (20:26 +1300)
2022年12月23日 07:34:03 +0000 (20:34 +1300)
commit b5d0f8ec01c021452203b2fd3921c9b55f6c3cd3
Allow parent's WaitEventSets to be freed after fork().

An epoll fd belonging to the parent should be closed in the child. A
kqueue fd is automatically closed by fork(), but we should still adjust
our 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 the
postmaster as planned.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKG%2BZ-HpOj1JsO9eWUP%2Bar7npSVinsC_npxSy%2BjdOMsx%3DGg%40mail.gmail.com
src/backend/storage/ipc/latch.c diff | blob | blame | history
src/include/storage/latch.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /