[PATCH openEuler-1.0-LTS] pid: fix return value when copy_process() failed