projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f3bf0
)
Elie De Brauwer pointed out that xputs() isn't reliably reporting errors because...
author
Rob Landley
<rob@landley.net>
Sun, 23 Dec 2012 07:25:27 +0000
(
01:25
-0600)
committer
Rob Landley
<rob@landley.net>
Sun, 23 Dec 2012 07:25:27 +0000
(
01:25
-0600)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
829b787
..
0cd1cb2
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-102,6
+102,7
@@
void toy_exec(char *argv[])
if (!which) return;
toy_init(which, argv);
toys.which->toy_main();
+ if (fflush(NULL) || ferror(stdout)) perror_exit("write");
exit(toys.exitval);
}