diff options
author | Dan Albert <danalbert@google.com> | 2015-05-08 16:08:57 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-05-08 16:08:57 -0700 |
commit | 218dbccefa3d874d988e4784bda5e45b7643cb5a (patch) | |
tree | 2c53ee1b0f321a632ca87412a550b451938980f7 /adb/adb.cpp | |
parent | 3e1cb6d98d54d38820de70bba07732ea87e84ffb (diff) | |
download | core-218dbccefa3d874d988e4784bda5e45b7643cb5a.tar.gz core-218dbccefa3d874d988e4784bda5e45b7643cb5a.tar.bz2 core-218dbccefa3d874d988e4784bda5e45b7643cb5a.zip |
Revert "Split adb_main.cpp into client and daemon."
This reverts commit cf07494ac2a101c3afbe23a7d85121553f586cf7.
Diffstat (limited to 'adb/adb.cpp')
-rw-r--r-- | adb/adb.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/adb/adb.cpp b/adb/adb.cpp index c4e3434c0..9abcc73f5 100644 --- a/adb/adb.cpp +++ b/adb/adb.cpp @@ -796,12 +796,13 @@ int handle_forward_request(const char* service, TransportType type, const char* return 0; } -int handle_host_request(const char* service, TransportType type, - const char* serial, int reply_fd, asocket* s) { - if (strcmp(service, "kill") == 0) { - fprintf(stderr, "adb server killed by remote request\n"); +int handle_host_request(const char* service, TransportType type, const char* serial, int reply_fd, asocket *s) +{ + if(!strcmp(service, "kill")) { + fprintf(stderr,"adb server killed by remote request\n"); fflush(stdout); SendOkay(reply_fd); + usb_cleanup(); exit(0); } |