commit | 8fcd8bc046188abe0b0e87754af472d4838b4c50 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Aug 25 10:59:45 2015 -0700 |
committer | Elliott Hughes <enh@google.com> | Tue Aug 25 10:59:45 2015 -0700 |
tree | 2ddcd1ccd6a92263b718f40a648e84edcddea401 | |
parent | d3c726064aa8e676ca4756e8461a5732b16aa7a9 [diff] [blame] |
EINTR is handled by adb_read/unix_read and friends. No need to clutter the code with cases that won't happen. Change-Id: I47c5a2e6170f902d2618719f44492234a4869567
diff --git a/adb/fdevent.cpp b/adb/fdevent.cpp index e722d66..d25bbfb 100644 --- a/adb/fdevent.cpp +++ b/adb/fdevent.cpp
@@ -205,8 +205,8 @@ n = epoll_wait(epoll_fd, events, 256, -1); - if(n < 0) { - if(errno == EINTR) return; + if (n < 0) { + if (errno == EINTR) return; perror("epoll_wait"); exit(1); }