added waitpid for parent while child executes in background for runtime.c::Exec