reset: before calling execvp(), reset needs to flush stdout