Return errno from handle_sigpipe. (#1051)

This commit is contained in:
Robert Nishihara 2017-10-11 18:36:28 -07:00 committed by Philipp Moritz
parent 379b0604b4
commit 9f1e385335

View file

@ -47,7 +47,9 @@ int handle_sigpipe(Status s, int fd) {
return 0;
}
switch (errno) {
int err = errno;
switch (err) {
case EPIPE: {
ARROW_LOG(WARNING)
<< "Received EPIPE when sending a message to client on fd " << fd
@ -74,6 +76,8 @@ int handle_sigpipe(Status s, int fd) {
CHECK(0);
LOG_FATAL("Failed to write message to client on fd %d", fd);
}
return err;
}
/**