godot/drivers/unix
Lorenz Junglas c7f2f9fa1f
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.

(cherry picked from commit 1107c7f327)
2021-01-13 16:17:09 +01:00
..
dir_access_unix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
dir_access_unix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_unix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_unix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ip_unix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ip_unix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
mutex_posix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
mutex_posix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
net_socket_posix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
net_socket_posix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
os_unix.cpp Fix nanosleep usage 2021-01-13 16:17:09 +01:00
os_unix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rw_lock_posix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
rw_lock_posix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
semaphore_posix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
semaphore_posix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
syslog_logger.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
syslog_logger.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
thread_posix.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
thread_posix.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00