summaryrefslogtreecommitdiff
path: root/adb/daemon/file_sync_service.cpp
diff options
context:
space:
mode:
authorHenry Daitx <daitx@google.com>2019-01-17 16:11:20 +0000
committerHenry Daitx <daitx@google.com>2019-01-23 11:00:45 +0000
commitf788f67c23648be208317ba6a4b902e09359925d (patch)
tree631332ca565e0c25f880623876680ea170aa11f3 /adb/daemon/file_sync_service.cpp
parent0ae6d74436eaa7d539d350414c1c74527bbf1ce4 (diff)
Fix fastdeploy failure in Windows
adb --fastdeploy creates a TemporaryFile to which the stdout for a shell command is redirected. This happens while the file is still open (the TemporaryFile object holds the file handle). In Linux this works, but Windows blocks the operation with an error of "The process cannot access the file because it is being used by another process". This change closes the file before the shell tries to write to it. Test: mm -j 72 Test: adb install --fastdeploy --force-agent --local-agent /mnt/raid/boat-attack-apk/boat-attack-swappy.apk Bug: 122592986 Change-Id: Iaaaf62cda43e4714d7f979e6a690549b383a7b82
Diffstat (limited to 'adb/daemon/file_sync_service.cpp')
0 files changed, 0 insertions, 0 deletions