Implement prefork.