[OpenSmalltalk/opensmalltalk-vm] 066a43: For epoll aio, close and reopen the epoll fd in fo...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OpenSmalltalk/opensmalltalk-vm] 066a43: For epoll aio, close and reopen the epoll fd in fo...

Eliot Miranda-3
 
  Branch: refs/heads/dtl/epoll-forksqueak
  Home:   https://github.com/OpenSmalltalk/opensmalltalk-vm
  Commit: 066a43128584d55964f4a6ace4b2c878cf96087e
      https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/066a43128584d55964f4a6ace4b2c878cf96087e
  Author: David T. Lewis <[hidden email]>
  Date:   2021-02-08 (Mon, 08 Feb 2021)

  Changed paths:
    M platforms/unix/vm/aio.c

  Log Message:
  -----------
  For epoll aio, close and reopen the epoll fd in forked child process
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.