diff options
Diffstat (limited to 'src/client/linux/crash_generation')
-rw-r--r-- | src/client/linux/crash_generation/crash_generation_server.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/linux/crash_generation/crash_generation_server.cc b/src/client/linux/crash_generation/crash_generation_server.cc index f1e16b1d..8ec95038 100644 --- a/src/client/linux/crash_generation/crash_generation_server.cc +++ b/src/client/linux/crash_generation/crash_generation_server.cc @@ -349,7 +349,7 @@ CrashGenerationServer::ClientEvent(short revents) // A nasty process could try and send us too many descriptors and // force a leak. for (unsigned i = 0; i < num_fds; ++i) - HANDLE_EINTR(close(reinterpret_cast<int*>(CMSG_DATA(hdr))[i])); + close(reinterpret_cast<int*>(CMSG_DATA(hdr))[i]); return true; } else { signal_fd = reinterpret_cast<int*>(CMSG_DATA(hdr))[0]; @@ -363,7 +363,7 @@ CrashGenerationServer::ClientEvent(short revents) if (crashing_pid == -1 || signal_fd == -1) { if (signal_fd) - HANDLE_EINTR(close(signal_fd)); + close(signal_fd); return true; } @@ -375,12 +375,12 @@ CrashGenerationServer::ClientEvent(short revents) ino_t inode_number; if (!GetInodeForFileDescriptor(&inode_number, signal_fd)) { - HANDLE_EINTR(close(signal_fd)); + close(signal_fd); return true; } if (!FindProcessHoldingSocket(&crashing_pid, inode_number - 1)) { - HANDLE_EINTR(close(signal_fd)); + close(signal_fd); return true; } @@ -391,7 +391,7 @@ CrashGenerationServer::ClientEvent(short revents) if (!google_breakpad::WriteMinidump(minidump_filename.c_str(), crashing_pid, crash_context, kCrashContextSize)) { - HANDLE_EINTR(close(signal_fd)); + close(signal_fd); return true; } @@ -410,7 +410,7 @@ CrashGenerationServer::ClientEvent(short revents) msg.msg_iovlen = 1; HANDLE_EINTR(sendmsg(signal_fd, &msg, MSG_DONTWAIT | MSG_NOSIGNAL)); - HANDLE_EINTR(close(signal_fd)); + close(signal_fd); return true; } |