lineedit: do not hang on error, but return error indicator.
[oweals/busybox.git] / coreutils / seq.c
index 03ae3c632be4a175144e4c466ae12c5296734edc..8be25360ffd21a2c9a510dd426d648d04d74b872 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (C) 2004, Glenn McGrath
  *
- * Licensed under the GPL v2, see the file LICENSE in this tarball.
+ * Licensed under GPLv2, see file LICENSE in this source tree.
  */
 #include "libbb.h"
 
@@ -95,5 +95,5 @@ int seq_main(int argc, char **argv)
        if (n) /* if while loop executed at least once */
                bb_putchar('\n');
 
-       return fflush(stdout);
+       return fflush_all();
 }