From d2b44bd628c85b8d7150a533b6c8a6b857211aa8 Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Wed, 16 Jun 2010 18:26:06 +0000 Subject: x git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49989 0039d316-1c4b-4281-b951-d872f2087c98 --- ipc/file_descriptor_set_posix.cc | 6 ++++-- ipc/ipc_channel_posix.cc | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'ipc') diff --git a/ipc/file_descriptor_set_posix.cc b/ipc/file_descriptor_set_posix.cc index 3796fae..7f17322 100644 --- a/ipc/file_descriptor_set_posix.cc +++ b/ipc/file_descriptor_set_posix.cc @@ -30,7 +30,8 @@ FileDescriptorSet::~FileDescriptorSet() { for (unsigned i = consumed_descriptor_highwater_; i < descriptors_.size(); ++i) { if (descriptors_[i].auto_close) - HANDLE_EINTR(close(descriptors_[i].fd)); + if (HANDLE_EINTR(close(descriptors_[i].fd)) < 0) + PLOG(ERROR) << "close"; } } @@ -113,7 +114,8 @@ void FileDescriptorSet::CommitAll() { for (std::vector::iterator i = descriptors_.begin(); i != descriptors_.end(); ++i) { if (i->auto_close) - HANDLE_EINTR(close(i->fd)); + if (HANDLE_EINTR(close(i->fd)) < 0) + PLOG(ERROR) << "close"; } descriptors_.clear(); consumed_descriptor_highwater_ = 0; diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc index 2fc1a18..6e8e2642 100644 --- a/ipc/ipc_channel_posix.cc +++ b/ipc/ipc_channel_posix.cc @@ -200,7 +200,8 @@ bool ServerAcceptFifoConnection(int server_listen_fd, int* server_socket) { if (accept_fd < 0) return false; if (fcntl(accept_fd, F_SETFL, O_NONBLOCK) == -1) { - HANDLE_EINTR(close(accept_fd)); + if (HANDLE_EINTR(close(accept_fd)) < 0) + PLOG(ERROR) << "close"; return false; } -- cgit v1.1