Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(121)

Issue 421002: Linux: Fix a bunch of clang errors from not handling return values. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by Lei Zhang (chromium)
Modified:
12 years, 4 months ago
Reviewers:
Mark Mentovai
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Linux: Fix a bunch of clang errors from not handling return values.
Committed: https://code.google.com/p/google-breakpad/source/detail?r=995

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/crash_generation/crash_generation_client.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M src/client/linux/handler/exception_handler_unittest.cc View 1 2 4 chunks +8 lines, -5 lines 0 comments Download
M src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer_unittest.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M src/common/linux/eintr_wrapper.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A src/common/linux/ignore_ret.h View 1 2 3 4 5 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 9
Lei Zhang (chromium)
See http://code.google.com/p/chromium/issues/detail?id=138571
12 years, 4 months ago #1
Mark Mentovai
https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc#newcode71 src/client/linux/crash_generation/crash_generation_client.cc:71: bool ret = HANDLE_EINTR(sys_sendmsg(server_fd_, &msg, 0)); bool here and ...
12 years, 4 months ago #2
Lei Zhang (chromium)
https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc#newcode71 src/client/linux/crash_generation/crash_generation_client.cc:71: bool ret = HANDLE_EINTR(sys_sendmsg(server_fd_, &msg, 0)); On 2012/07/23 22:03:16, ...
12 years, 4 months ago #3
Mark Mentovai
https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc#newcode71 src/client/linux/crash_generation/crash_generation_client.cc:71: bool ret = HANDLE_EINTR(sys_sendmsg(server_fd_, &msg, 0)); thestig wrote: > ...
12 years, 4 months ago #4
Lei Zhang (chromium)
https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/421002/diff/2001/src/client/linux/crash_generation/crash_generation_client.cc#newcode71 src/client/linux/crash_generation/crash_generation_client.cc:71: bool ret = HANDLE_EINTR(sys_sendmsg(server_fd_, &msg, 0)); On 2012/07/23 22:31:06, ...
12 years, 4 months ago #5
Mark Mentovai
LGTM otherwise https://breakpad.appspot.com/421002/diff/6002/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/421002/diff/6002/src/client/linux/crash_generation/crash_generation_client.cc#newcode71 src/client/linux/crash_generation/crash_generation_client.cc:71: ssize_t ret = HANDLE_EINTR(sys_sendmsg(server_fd_, &msg, 0)); Much ...
12 years, 4 months ago #6
Lei Zhang (chromium)
https://breakpad.appspot.com/421002/diff/6002/src/common/linux/ignore_ret.h File src/common/linux/ignore_ret.h (right): https://breakpad.appspot.com/421002/diff/6002/src/common/linux/ignore_ret.h#newcode34 src/common/linux/ignore_ret.h:34: // where we either a) know the call cannot ...
12 years, 4 months ago #7
Mark Mentovai
LGTM otherwise https://breakpad.appspot.com/421002/diff/7002/src/common/linux/eintr_wrapper.h File src/common/linux/eintr_wrapper.h (right): https://breakpad.appspot.com/421002/diff/7002/src/common/linux/eintr_wrapper.h#newcode47 src/common/linux/eintr_wrapper.h:47: #endif // ifndef COMMON_LINUX_EINTR_WRAPPER_H_ Oh, hmm, we ...
12 years, 4 months ago #8
Lei Zhang (chromium)
12 years, 4 months ago #9
On 2012/07/24 00:08:53, Mark Mentovai wrote:
> LGTM otherwise
> 
> https://breakpad.appspot.com/421002/diff/7002/src/common/linux/eintr_wrapper.h
> File src/common/linux/eintr_wrapper.h (right):
> 
>
https://breakpad.appspot.com/421002/diff/7002/src/common/linux/eintr_wrapper....
> src/common/linux/eintr_wrapper.h:47: #endif  // ifndef
> COMMON_LINUX_EINTR_WRAPPER_H_
> Oh, hmm, we don’t usually write ifndef in the comment either.
> 
> https://breakpad.appspot.com/421002/diff/7002/src/common/linux/ignore_ret.h
> File src/common/linux/ignore_ret.h (right):
> 
>
https://breakpad.appspot.com/421002/diff/7002/src/common/linux/ignore_ret.h#n...
> src/common/linux/ignore_ret.h:40: #endif  // ifndef COMMON_LINUX_INGORE_RET_H_
> Same.

Done and done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted