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         [EMAIL PROTECTED] /
/_http://www.almesberger.net/____________________________________________/


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to