return the correct error code in case of an error in the child process
launch_process does not create the IO pipes anymore