do_foreground()