Closed rmsacks closed 3 years ago
Are you sure failing is the best option when nanosleep()
fails?
Are you sure failing is the best option when
nanosleep()
fails?
My only reasoning for checking the error was to be safe. However, given its usage here and the fact that usleep()
's error was not checked before, I think that it should be fine without it.
Thanks.
usleep() was declared obsolete in POSIX.1-2001 and removed in POSIX.1-2008. Replace its usage with nanosleep().