Changed value returned by fork in child process to -2