DescriptionFix split in base::ProcessIsProcessBackgrounded()
Most Unix files end in newline, so by having the contents of
/proc/<pid>/cgroup by newline with SPLIT_WANT_ALL, the last entry was
always blank, triggering a NOTREACHED() and polluting the log. This
change uses SPLIT_WANT_NONEMPTY instead to get rid of empty lines.
BUG=548818
TEST=base_unittests --gtest_filter=ProcessTest.TestIsProcessBackgroundedCGroup
Committed: https://crrev.com/99fbcf8043ece4e72b5d15fee9be6d29b562aa06
Cr-Commit-Position: refs/heads/master@{#361383}
Patch Set 1 #Patch Set 2 : Fixed formatting #Patch Set 3 : Added tests #
Messages
Total messages: 16 (6 generated)
|