Extract foreground application PID separately.