Refine some codes in ProcessHandler.

Signed-off-by: 核心力量 <kernelforce@gmail.com>