Who decided my sleep(1) could wait several seconds and not just the 1 I coded?
The person who wrote the spec for sleep(), which says, among other things:
The suspension time may be longer than requested due to the scheduling of other activity by the system.
So if you believe that »sleep(1)« will sleep for exactly one second, you are mistaken about how sleep() works.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds