diff options
author | Lorenz Junglas <lolleko@users.noreply.github.com> | 2020-10-12 16:27:31 +0200 |
---|---|---|
committer | Lorenz Junglas <lolleko@users.noreply.github.com> | 2020-10-12 16:27:31 +0200 |
commit | 1107c7f327f6d14010b4bd45b25e3c47f89b9948 (patch) | |
tree | e98f9a38594140b424c4a0cecda73612de88be9a /editor/icons/YSort.svg | |
parent | ab0907c1bab2b1f4131aa63d24f9d337692d64a6 (diff) |
Fix nanosleep usage
nanosleep returns 0 or -1 not the error code.
The error code "EINTR" (if encountered) is placed in errno, in which case nanosleep can be safely recalled with the remaining time.
This is required, so that nanosleep continues if the calling thread is interrupted by a signal.
See manpage nanosleep(2) for additional details.
Diffstat (limited to 'editor/icons/YSort.svg')
0 files changed, 0 insertions, 0 deletions