Merge pull request #8 from pcmoritz/fix

fix error handling
This commit is contained in:
Robert Nishihara
2016-08-16 16:03:14 -07:00
committed by GitHub
+2 -6
View File
@@ -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);
}
}