Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Return errno from handle_sigpipe. (ray-project#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertnishihara authored and pcmoritz committed Oct 12, 2017
1 parent 379b060 commit 9f1e385
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plasma/plasma_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

/**
Expand Down

0 comments on commit 9f1e385

Please sign in to comment.