Re: Notes when applying IO channel patch
- From: Johannes Stezenbach <js convergence de>
- To: Owen Taylor <otaylor redhat com>
- Cc: Ron Steinke <rsteinke w-link net>, gtk-devel-list gnome org
- Subject: Re: Notes when applying IO channel patch
- Date: Mon, 02 Jul 2001 13:39:24 +0200
Owen Taylor wrote:
>
> If we remove ERANGE, EBADMSG as being STREAMS things, say that
> we warn and don't return EBADF and EFAULT, and handle EGAIN
> and EINTR internally, then the set is:
EAGAIN can happen on non-blocking file descriptors only, and
there it makes no sense to handle it internally: The user
asked for it by setting the file descriptor to non-blocking
and needs EAGAIN for status notification.
Besides, how would you handle EAGAIN internally?
Busy waiting until the read/write() call succeeds?
Regards,
Johannes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]