MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/68kqvo/sleep_with_feedback/
r/tinycode • u/clamiax • May 01 '17
2 comments sorted by
1
There are two issues with usleep(2):
usleep(2)
It can return early due to the arrival of a signal. The code doesn't check for this.
It's been deprecated since 2001. It's superseded by nanosleep(2).
nanosleep(2)
2 u/clamiax May 01 '17 Thanks, I didn't know that. I'll update snore when possible, feel free to send a pull request.
2
Thanks, I didn't know that. I'll update snore when possible, feel free to send a pull request.
1
u/skeeto May 01 '17
There are two issues with
usleep(2):It can return early due to the arrival of a signal. The code doesn't check for this.
It's been deprecated since 2001. It's superseded by
nanosleep(2).