Fix logpersist.stop race condition
The steps did by `logpersist.stop --clear` is
1. setprop logd.logpersistd clear
2. setprop logd.logpersistd.size ""
3. wait logd.logpersistd changed to be empty by logcated.rc
The problem is, logpersist.stop may modify size earlier than located.rc invoking logcat.
See comment 5 in the bug for detailed reproduce steps.
Bug: b/275518567
Test: `logpersist.stop --clear` should delete all log files in /data/misc/logd
Change-Id: Ifacfacc6486c2b98a67fb7d9587e6f588b84f179
1 file changed