You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
traversaro
changed the title
clock_nanosleep with clockid CLOCK_REALTIME fails with error EINVAL.
clock_nanosleep with clockid CLOCK_REALTIME fails with error EINVAL
Sep 17, 2017
I am calling
clock_nanosleep
with clockidCLOCK_REALTIME
, and the call fails with errorEINVAL
.A self-contained example can be found in https://gist.github.com/traversaro/c2b6941ef2ddd10e9dd6c1800483696a .
On my system, the corresponding output is:
What's wrong / what should be happening instead:
The call should be successful, and sleep (at least) for the specified amount of time.
Strace of the failing command, if applicable:
There is a similar issue #2116 and User Voice idea https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/19349059-support-clock-process-thread-cputime-id-clocks related to fully support the clockid
CLOCK_PROCESS_CPUTIME_ID
andCLOCK_THREAD_CPUTIME_ID
, but I did not find any issue related to the full support ofCLOCK_REALTIME
, so I opened a new issue for this.The text was updated successfully, but these errors were encountered: