From: Werner A. <wa...@al...> - 2006-03-17 23:54:42
|
Blaisorblade wrote: > however usleep(3) exists since 4.3 BSD so this is a > bit unlikely; Oh, there must be a million of passably valid reasons why someone may still do it this way, e.g., - because they don't know of the more suitable function - because they don't trust the more suitable function for some reason - because they're using some restricted set of functions, e.g., from a portable library - because the other function isn't available on all platforms they care about, while the "poll" functionality (perhaps through some abstraction that may also use "select") is - because they use a signal to get out of the initial "hang" - because the semantics of their code actually say "I/O or timeout" - because that's what the code that has passed all those reviews and certifications does, and nobody is allowed to touch it. Ever. etc. Just because this valid if unexpected behaviour was a little inconvenient for us isn't a good reason for breaking it. If a safe, easy, and incredibly boring life was the top item on our agenda, we should start with getting rid of concurrency ;-) - Werner -- _________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina wa...@al... / /_http://www.almesberger.net/____________________________________________/ |