mirror of
https://github.com/vale981/ray
synced 2025-03-09 12:56:46 -04:00
Return errno from handle_sigpipe. (#1051)
This commit is contained in:
parent
379b0604b4
commit
9f1e385335
1 changed files with 5 additions and 1 deletions
|
@ -47,7 +47,9 @@ int handle_sigpipe(Status s, int fd) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (errno) {
|
int err = errno;
|
||||||
|
|
||||||
|
switch (err) {
|
||||||
case EPIPE: {
|
case EPIPE: {
|
||||||
ARROW_LOG(WARNING)
|
ARROW_LOG(WARNING)
|
||||||
<< "Received EPIPE when sending a message to client on fd " << fd
|
<< "Received EPIPE when sending a message to client on fd " << fd
|
||||||
|
@ -74,6 +76,8 @@ int handle_sigpipe(Status s, int fd) {
|
||||||
CHECK(0);
|
CHECK(0);
|
||||||
LOG_FATAL("Failed to write message to client on fd %d", fd);
|
LOG_FATAL("Failed to write message to client on fd %d", fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue