adb: delete FDEVENT_DONTCLOSE.
The only existing usage of this doesn't actually need it.
Bug: http://b/79786774
Test: mma
Change-Id: If5e665705393e938cfdbf1526beb5496a8b99a9b
diff --git a/adb/fdevent.cpp b/adb/fdevent.cpp
index b3ff457..f9e262c 100644
--- a/adb/fdevent.cpp
+++ b/adb/fdevent.cpp
@@ -111,9 +111,6 @@
if (fde->state & FDE_ERROR) {
state += "E";
}
- if (fde->state & FDE_DONT_CLOSE) {
- state += "D";
- }
return android::base::StringPrintf("(fdevent %d %s)", fde->fd, state.c_str());
}
@@ -157,10 +154,8 @@
if (fde->state & FDE_PENDING) {
g_pending_list.remove(fde);
}
- if (!(fde->state & FDE_DONT_CLOSE)) {
- adb_close(fde->fd);
- fde->fd = -1;
- }
+ adb_close(fde->fd);
+ fde->fd = -1;
fde->state = 0;
fde->events = 0;
}