Update $inferior_pid to make it can output current inferior's pid.