summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorLuke Huang <huangluke@google.com>2019-06-11 14:25:45 +0800
committerLuke Huang <huangluke@google.com>2019-06-11 15:18:28 +0800
commit5b31126c9dc414cf6bc2b5a20988f2ef4132f6b1 (patch)
treea43299302be5174c2500f6329ef509f0dcf1c53c /tools/aapt2/java/JavaClassGenerator_test.cpp
parent882558700b08089d02da92a70ff101fd7957e07d (diff)
Fix race condition caused by fd reused for DnsResolver
There might be a gap between fd close and fd event listener unregister. If fd is reused for another query during that gap, it might cause the query failed with no response since addOnFileDescriptorEventListener method failed. To fix this problem, we must ensure that fd event listener is unregistered before fd closing. Bug: 134310704 Test: atest DnsResolverTest Change-Id: Ifb6bd34dc54dcf1c61fe8b87785124df4bc0f410
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions