|
POSIX: Add a macro for handling EINTR.
Previously, our handling of EINTR was a little sloppy. If I happened
to review a bit of code, I probably made sure that EINTR was handled
in a do loop. Otherwise, it would just be ignored.
This patch adds "base/eintr_wrappers.h" which, currenly, defines a
single macro: HANDLE_EINTR. This macro can be wrapped around any
system call and will restart the call if it returns -1 and errno ==
EINTR.
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+221 lines, -212 lines) |
Patch |
 |
M |
base/debug_util_posix.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/directory_watcher_inotify.cc
|
View
|
1
|
5 chunks |
+9 lines, -15 lines |
0 comments
|
Download
|
 |
A |
base/eintr_wrappers.h
|
View
|
1
2
3
4
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/file_descriptor_shuffle.cc
|
View
|
|
2 chunks |
+4 lines, -16 lines |
0 comments
|
Download
|
 |
M |
base/file_util_linux.cc
|
View
|
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
base/file_util_posix.cc
|
View
|
|
4 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
 |
M |
base/message_pump_glib.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/message_pump_libevent.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
base/process_util_linux.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
base/process_util_mac.mm
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
base/process_util_posix.cc
|
View
|
1
|
10 chunks |
+15 lines, -25 lines |
0 comments
|
Download
|
 |
M |
base/process_util_unittest.cc
|
View
|
|
5 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/debugger/devtools_remote_listen_socket.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/debugger/devtools_remote_listen_socket_unittest.cc
|
View
|
1
|
6 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/process_singleton_linux.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/renderer_host/render_widget_helper.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/file_descriptor_set_posix.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/file_descriptor_set_unittest.cc
|
View
|
|
3 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_channel_posix.cc
|
View
|
1
|
15 chunks |
+51 lines, -58 lines |
0 comments
|
Download
|
 |
M |
chrome/common/ipc_send_fds_test.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/process_watcher_posix.cc
|
View
|
1
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/common/transport_dib_mac.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
net/base/file_stream_posix.cc
|
View
|
|
2 chunks |
+9 lines, -18 lines |
0 comments
|
Download
|
 |
M |
net/base/listen_socket.cc
|
View
|
|
4 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
net/base/listen_socket_unittest.cc
|
View
|
|
5 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
 |
M |
net/base/tcp_client_socket_libevent.cc
|
View
|
2
3
|
8 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
 |
M |
net/base/telnet_server.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|