diff options
Diffstat (limited to 'src/ipc_connecter.cpp')
-rw-r--r-- | src/ipc_connecter.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ipc_connecter.cpp b/src/ipc_connecter.cpp index ec9c5b1..af3665c 100644 --- a/src/ipc_connecter.cpp +++ b/src/ipc_connecter.cpp @@ -206,16 +206,15 @@ int xs::ipc_connecter_t::open () return -1; } -int xs::ipc_connecter_t::close () +void xs::ipc_connecter_t::close () { if (s == retired_fd) - return 0; + return; int rc = ::close (s); - if (rc != 0) - return -1; + errno_assert (rc == 0 || errno == ECONNRESET); + s = retired_fd; - return 0; } xs::fd_t xs::ipc_connecter_t::connect () |