Added a new after_fork() function to handle post fork things.