Fixed
Status Update
Comments
vi...@google.com <vi...@google.com> #2
Information redacted by Android Beta Feedback.
ei...@gmail.com <ei...@gmail.com> #3
Comment has been deleted.
se...@gmail.com <se...@gmail.com> #4
Could you please let me know if without Android Auto
usage and not using com.njm.njmsafedrivego
and com.august.bennu
lessen battery drain?
vi...@google.com <vi...@google.com> #5
en...@google.com <en...@google.com> #6
Could you please capture a bug report and share it here?
en...@google.com <en...@google.com> #7
Please provide the requested information to proceed further. Unfortunately the issue will be closed within 7 days if there is no further update.
se...@gmail.com <se...@gmail.com> #8
Hi and thank you very much for investigating this. Looking at the old source code did not help. I checked the patch and it definitely fixes the issue ! Time to upgrade my Android version. Thanks again.
Description
Hi,
I've been experiencing crashes of an application related to the fact that clock_nanosleep() is returning -1.
From the clock_nanosleep() Linux/Posix implementation it is stated that: RETURN VALUE On successfully sleeping for the requested interval, clock_nanosleep() returns 0. If the call is interrupted by a signal handler or encoun‐ ters an error, then it returns one of the positive error number listed in ERRORS.
When looking at the code of Bionic libc I can see:
=> clock_nanosleep() is using __set_syscall_errno has the error reporting mechanismhttps://android.googlesource.com/platform/bionic/+/ics-mr1-release/libc/bionic/__set_errno.c
We can see that clock_nanosleep implementation in Bionic libc will return -1 uppon error and set errno which is not the behavior expected from POSIX clock_nanosleep().
Don't hesitate if I'm wrong or you need more information.
Seb