commit | 0f2e66866c18ff581fc0e9225bdac67509c68658 | [log] [tgz] |
---|---|---|
author | Keith Mok <keithmok@google.com> | Mon Nov 15 05:50:32 2021 +0000 |
committer | Keith Mok <keithmok@google.com> | Fri Nov 19 20:38:22 2021 +0000 |
tree | c2731d322ddb9563eaec09fdb01a9d9377974f0c | |
parent | 5f91507b2b13c0132ad198d22db75c2b51a9a663 [diff] |
Fix nanosleep in BootAnimation clock_nanosleep will return 0 or error no directly. Bug: 207149564 Test: Build ok Change-Id: I15866728719d0672a16b4a76a8fd3be4d53d420a
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 3109c5c..6b8a775 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp
@@ -1348,7 +1348,7 @@ int err; do { err = clock_nanosleep(CLOCK_MONOTONIC, TIMER_ABSTIME, &spec, nullptr); - } while (err<0 && errno == EINTR); + } while (err == EINTR); } checkExit();