Add fork() function and process type