Factor the epoll initiation out of aioInit into new epollInit function and invoke it via pthread_atfork in the child process after a fork. Prevents misdelivery of events from the common kernel epoll structures. You can view, comment on, or merge this pull request online at:
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/552
-- Commit Summary --
* For epoll aio, close and reopen the epoll fd in forked child process
-- File Changes --
M platforms/unix/vm/aio.c (23)
-- Patch Links --
https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/552.patch https://github.com/OpenSmalltalk/opensmalltalk-vm/pull/552.diff
@dtlewis290 pushed 1 commit.
8996e9691f97e9f8b4f0c3460737ba484a7527db Rearrange disconnectXDisplay and forgetXDisplay to give clean shutdown
I see no problems with this. Merge it.
Merged #552 into Cog.
vm-dev@lists.squeakfoundation.org