summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/command-connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/command-connection.cpp')
-rw-r--r--configd/src/apps/sentinel/command-connection.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/configd/src/apps/sentinel/command-connection.cpp b/configd/src/apps/sentinel/command-connection.cpp
index 9b35d801ecb..4bba9c62be9 100644
--- a/configd/src/apps/sentinel/command-connection.cpp
+++ b/configd/src/apps/sentinel/command-connection.cpp
@@ -50,7 +50,10 @@ CommandConnection::printf(const char *fmt, ...)
int ret = vsnprintf(buf, sizeof buf, fmt, args);
va_end(args);
- write(_fd, buf, strlen(buf));
+ size_t len = strlen(buf);
+ if (write(_fd, buf, strlen(buf) != len)) {
+ perror("CommandConnection::printf failed");
+ }
return ret;
}