sample code of prefork