Chromium Code Reviews
Description[Android] Run shell commands from the forwarder without passing fds.
The forwarder daemon was running commands with system(). This would give
the newly forked process copies of the same file handles held by the
daemon, notably including the unix domain socket.
If the adb server wasn't already running and the daemon called an adb
command, the adb server would be forked from the adb client process
with those same file handles -- including the unix domain socket. This
would interfere both with shutting down the host forwarder daemon
(as we'd see the unix domain socket still held by the adb server) and
with subsequent attempts to bring it up (same reason).
BUG=634052, 650674
Committed: https://crrev.com/dccd754c3b5cc5be5c809ffd6a9b742053f25c76
Cr-Commit-Position: refs/heads/master@{#422263}
Patch Set 1 #
Messages
Total messages: 14 (8 generated)
|
|||||||||||||||||||