print-pid: Simplify code.