]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
src/msg/async/EventKqueue.{h,cc} Added code to restore events on (thread)fork
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 11 Oct 2016 15:28:23 +0000 (17:28 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Sat, 15 Oct 2016 11:04:36 +0000 (13:04 +0200)
commit4e3ed5ad04899a5f3eb9331cac8556b05ee41fc2
treed5c3c64c9aa421330f72c06d4a634093a5fb0581
parentb1853bfe9841d0943b3ed33838290bb2fabdbc4e
src/msg/async/EventKqueue.{h,cc} Added code to restore events on (thread)fork

According the FreeBSD man page of kqueue(), the kq-descriptors become invalid
upon fork. It looks like the same happens when a kq-handle is created and then
a thread is created.

So we keep a list of assigned events with each kq-handle and when the handle
has beccome invalid, we recreated the kq-handle and the events that go with it.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/msg/async/EventKqueue.cc
src/msg/async/EventKqueue.h