rawhide report: 20041019 changes
Ulrich Drepper
drepper at redhat.com
Tue Oct 19 20:05:18 UTC 2004
-----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-----
More information about the fedora-devel-list
mailing list