[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rawhide report: 20041019 changes



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jay Fenlason wrote:

> specifying O_NONBLOCK, then failing to handle EAGAIN reasonably is is
> an application bug.  Unfortunatly, it's a bug that hasn't actually
> been visible until now.

Well, there currently is no legal way to do this at all without busy
loops.  select/poll really have to return immediately for files
according to POSIX.  What would be needed is either to deliberately
diverge from POSIX or have a non-standard extension (like another epoll
flag) to do what is needed.

But it's good advise to look at every program using O_NONBLOCK on files.
 If it, as in squid's case, just reads a file and cannot proceed until
that happens and does not wait in poll/select/epoll while reading, then
there is absolutely no reason to use O_NONBLOCK and it should be removed.

- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBdXN+2ijCOnn/RHQRAoyWAKDJ1RyyiWjd4Iq0XsOkB3tbx3SXkQCfaEI8
X5G9pd+718RC+NI9Q9iR6O0=
=65zv
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]