Fork
— Fork watcher¶
-
class
Fork
(loop, callback[, data=None, priority=0])¶ Parameters: Fork
watchers are called when afork()
was detected (usually because whoever is a good citizen cared to tell libev about it by callingLoop.reset()
). The invocation is done before the event loop blocks next and beforeCheck
watchers are being called, and only in the child after the fork. If whoever good citizen callingLoop.reset()
cheats and calls it in the wrong process, the fork handlers will be invoked, too, of course.