diff options
| author | Josh Gao <jmgao@google.com> | 2015-12-11 10:52:55 -0800 |
|---|---|---|
| committer | Josh Gao <jmgao@google.com> | 2015-12-11 15:10:12 -0800 |
| commit | 9b3fd6721392b16dee00caeca9586070496471e1 (patch) | |
| tree | 814c9f5e26a8d78ac7706bd768dca334b6d130e7 /base/errors_unix.cpp | |
| parent | 86052a5d4f217a73c769c77f7ac0904b65e67942 (diff) | |
adb: don't use setenv after forking.
Previously, for `adb shell`, we were using setenv after forking to set
up the child's environment. This would occasionally deadlock in the
child, which would cause the main thread to deadlock waiting for the
child to complete. This patch constructs the environment before forking
and passes it to execle, eliminating the deadlock.
Bug: http://b/25847115
Change-Id: I720d472770564b1449819ddaab945a89844244a8
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions
