diff --git a/usr.bin/env/env.c b/usr.bin/env/env.c --- a/usr.bin/env/env.c +++ b/usr.bin/env/env.c @@ -207,6 +207,8 @@ } for (ep = environ; *ep; ep++) (void)printf("%s%c", *ep, term); + if (fflush(stdout) != 0) + err(1, "stdout"); exit(0); }