lineedit: do not hang on error, but return error indicator.
[oweals/busybox.git] / coreutils / echo.c
index decca095f25fc1dfa4f92a299e8a183cb731ba20..3821e594e329ca963dc2f03558ce68f6bfe70825 100644 (file)
@@ -5,7 +5,7 @@
  * Copyright (c) 1991, 1993
  *     The Regents of the University of California.  All rights reserved.
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  *
  * Original copyright notice is retained at the end of this file.
  */
@@ -141,7 +141,7 @@ int echo_main(int argc UNUSED_PARAM, char **argv)
                bb_putchar('\n');
        }
  ret:
-       return fflush(stdout);
+       return fflush_all();
 }
 
 /*-