initAfterFork will only be called for modules that can run forked.
Major code changes.