summaryrefslogtreecommitdiff
path: root/debuggerd/handler/debuggerd_handler.cpp
diff options
context:
space:
mode:
authorSuren Baghdasaryan <surenb@google.com>2020-02-13 17:28:00 -0800
committerSuren Baghdasaryan <surenb@google.com>2020-02-14 01:42:11 +0000
commit911109c4149a2fca140cdf471d15deb38ebdcdcb (patch)
treeca7cab7309d291108b69339d4c2614f41ee9518e /debuggerd/handler/debuggerd_handler.cpp
parentc7b92ea120a963e85e5aa0257aab050ad64c124e (diff)
libprocessgroup: Prevent SetProcessProfiles from using cached fd
Because we cache file descriptors associated with cgroup "tasks" file it should not be used with SetProcessProfiles API which operates on entire processes rather than tasks. Change SetProcessProfiles API to prevent cache fd usage, modify ExecuteForProcess to not attempt to use cached fd. Also fix unconditional calls to EnableResourceCaching from ExecuteForTask which should be called only when SetTaskProfiles is used with use_fd_cache set to true. Bug: 149524788 Change-Id: I880efaf8217a4dd7ccfbb4fb167b2295cefc057a Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'debuggerd/handler/debuggerd_handler.cpp')
0 files changed, 0 insertions, 0 deletions