aboutsummaryrefslogtreecommitdiff
path: root/libbb/verror_msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/verror_msg.c')
-rw-r--r--libbb/verror_msg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/verror_msg.c b/libbb/verror_msg.c
index 506b9066a..70f792f39 100644
--- a/libbb/verror_msg.c
+++ b/libbb/verror_msg.c
@@ -64,7 +64,7 @@ void FAST_FUNC bb_verror_msg(const char *s, va_list p, const char* strerr)
64 } 64 }
65 65
66 if (logmode & LOGMODE_STDIO) { 66 if (logmode & LOGMODE_STDIO) {
67 fflush(stdout); 67 fflush_all();
68 full_write(STDERR_FILENO, msg, used); 68 full_write(STDERR_FILENO, msg, used);
69 } 69 }
70 if (logmode & LOGMODE_SYSLOG) { 70 if (logmode & LOGMODE_SYSLOG) {
@@ -125,8 +125,8 @@ void FAST_FUNC bb_verror_msg(const char *s, va_list p, const char* strerr)
125 iov[1].iov_len = 2; 125 iov[1].iov_len = 2;
126 /*iov[2].iov_base = msgc;*/ 126 /*iov[2].iov_base = msgc;*/
127 /*iov[2].iov_len = used;*/ 127 /*iov[2].iov_len = used;*/
128 fflush(stdout); 128 fflush_all();
129 writev(2, iov, 3); 129 writev(STDERR_FILENO, iov, 3);
130 } 130 }
131 if (logmode & LOGMODE_SYSLOG) { 131 if (logmode & LOGMODE_SYSLOG) {
132 syslog(LOG_ERR, "%s", msgc); 132 syslog(LOG_ERR, "%s", msgc);