fix awk exit status in exit_idle's while.