$real_process should be $name if $process is empty, not the other way around