summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index f4e11c966..b0dbb3f70 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -151,8 +151,10 @@ mm_request_receive(int sock, Buffer *m)
151 debug3("%s entering", __func__); 151 debug3("%s entering", __func__);
152 152
153 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) { 153 if (atomicio(read, sock, buf, sizeof(buf)) != sizeof(buf)) {
154 if (errno == EPIPE) 154 if (errno == EPIPE) {
155 error("%s: socket closed", __func__);
155 cleanup_exit(255); 156 cleanup_exit(255);
157 }
156 fatal("%s: read: %s", __func__, strerror(errno)); 158 fatal("%s: read: %s", __func__, strerror(errno));
157 } 159 }
158 msg_len = get_u32(buf); 160 msg_len = get_u32(buf);