Merge "emulator: Use distinct serial names for simultaneous qemu pipes."

This commit is contained in:
Prathmesh Prabhu 2016-03-11 00:51:44 +00:00 committed by Gerrit Code Review
commit a680117bb5

View file

@ -260,7 +260,8 @@ static void qemu_socket_thread(void* arg) {
} else {
/* Host is connected. Register the transport, and start the
* exchange. */
register_socket_transport(fd, "host", port, 1);
std::string serial = android::base::StringPrintf("host-%d", fd);
register_socket_transport(fd, serial.c_str(), port, 1);
if (!WriteFdExactly(fd, _start_req, strlen(_start_req))) {
adb_close(fd);
}