Fix 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
Review URL: https://codereview.chromium.org/1474483002
Cr-Commit-Position: refs/heads/master@{#361383}
CrOS-Libchrome-Original-Commit: 99fbcf8043ece4e72b5d15fee9be6d29b562aa06
2 files changed