libprocessgroup: Use WriteStringToFd for WriteFileAction
Using WriteStringToFile will hold kernfs_mutex which is a big lock, so use WriteStringToFd instead. Besides, also support fd cache for it. Bug: 206970384 Test: build pass (cherry picked from commit e808841d) (cherry picked from commit b8d7ac60) Merged-In: Id79f9e1095f52079393c58edb9a4d526f4cc6b5e Change-Id: Id79f9e1095f52079393c58edb9a4d526f4cc6b5e
Loading