From 6db8d1c15acd4c458f731472f10237ed699a5b26 Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Tue, 16 Aug 2016 15:49:26 -0700 Subject: [PATCH] fix error handling --- src/plasma_client.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/plasma_client.c b/src/plasma_client.c index 86b49125d..cd60d659b 100644 --- a/src/plasma_client.c +++ b/src/plasma_client.c @@ -18,12 +18,8 @@ void plasma_send(int fd, plasma_request *req) { int req_count = sizeof(plasma_request); if (write(fd, req, req_count) != req_count) { - if (req_count > 0) { - LOG_ERR("partial write on fd %d", fd); - } else { - LOG_ERR("write error"); - exit(-1); - } + LOG_ERR("write error"); + exit(-1); } }