summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-11-18 18:07:48 -0800
committerElliott Hughes <enh@google.com>2015-11-20 09:42:23 -0800
commit65433da1cbd8d2869a60ce3bf18b6b440461741d (patch)
treee371c19f8e3f51b0564b9a309e6ec2b73b7260a3 /base/errors_unix.cpp
parent9f903687011c195154b0c69c02e6aaa35c867242 (diff)
Avoid SIGPIPE in adb.
We're now able to send packets faster than the device can handle them, meaning that sometimes we're several packets through before the device says "hey, wait, I can't write" and closes the connection. At best this led to us reporting that we couldn't sync because "Connection reset"; at worst we'd get SIGPIPE because we were still streaming to a connection that had already been closed. This change renames adb_main adb_server_main, and moves the ignoring of SIGPIPE into adb_commandline so it applies to both client and server (but not adbd). This change doesn't address the "wrong error message" part of the problem, but at least it means you'll get *an* error message. Bug: http://b/25230872 Change-Id: Ic60e4d13ed03fdcdf0d5cbc97201ebd1097c16ed
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions