summaryrefslogtreecommitdiff
path: root/libutils/Unicode.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-07-31 13:23:18 -0700
committerTom Cherry <tomcherry@google.com>2017-07-31 16:00:18 -0700
commitd269e3a795fbb0ecb7b2c6dff720f9b356365a22 (patch)
tree0b83435f1057734ee586152589939846aeb3cdaf /libutils/Unicode.cpp
parent379123f9ab0182f1bce883c0a6dd14a7ccd7f546 (diff)
init: fix process restarting
The time data types associated with restarting processes halfway moved to std::chrono and halfway didn't. In this intermediate state, the times would get converted from nanoseconds to seconds then to milliseconds. The precision lost when converting to seconds would cause the main loop of init to spin whenever a process was within a second of being restarted. This patch cleans up this logic and uses nanoseconds and milliseconds explicitly, with a ceiling to milliseconds to prevent unneeded spinning. Test: boot bullhead, kill processes, see that they restart sanely. Change-Id: I0b017ba0e50c09704b0c5cdfcde1dba461804593
Diffstat (limited to 'libutils/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions