Redirect stderr of upgrade dd and write its pid

I plan to use it to gather the progress status in the future.