posix: Fix assertion when freeing ProcessSingleton

This commit is contained in:
Cheng Zhao 2018-01-03 19:47:01 +09:00
parent 1072c75e38
commit 1ff872519c

View file

@ -735,6 +735,10 @@ ProcessSingleton::ProcessSingleton(
ProcessSingleton::~ProcessSingleton() {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
// Manually free resources with IO explicitly allowed.
base::ThreadRestrictions::ScopedAllowIO allow_io;
watcher_ = nullptr;
ignore_result(socket_dir_.Delete());
}
ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcess() {