Updated the create_child function. Right now it's able to lauch a process, but it fails, most likely because of the env variables.