aboutsummaryrefslogtreecommitdiff
path: root/logs.cc
diff options
context:
space:
mode:
Diffstat (limited to 'logs.cc')
-rw-r--r--logs.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/logs.cc b/logs.cc
index d377505..bc3f502 100644
--- a/logs.cc
+++ b/logs.cc
@@ -156,9 +156,7 @@ void logMsg(enum llevel_t ll, const char* fn, int ln, bool perr, const char* fmt
msg.append("\n");
/* End printing logs */
- if (write(_log_fd, msg.c_str(), msg.size()) == -1) {
- dprintf(_log_fd, "%s", msg.c_str());
- }
+ TEMP_FAILURE_RETRY(write(_log_fd, msg.c_str(), msg.size()));
if (ll == FATAL) {
exit(0xff);