Re: How do disk writes work these days?
Re: How do disk writes work these days?
- Subject: Re: How do disk writes work these days?
- From: Pelle Johansson <email@hidden>
- Date: Tue, 30 Jul 2002 23:37:59 +0200
tisdagen den 30 juli 2002 kl 17.15 skrev Quinn:
At 16:38 +0200 30/7/02, Pelle Johansson wrote:
IMO, a much better way, in programs where it is possible, is to use
O_NONBLOCK (in either open() or fcntl()) and select() to check for
writable file descriptors. [...]
Last I checked file descriptors that refer to files always trigger
select to return immediately (at least an Darwin systems). The select
system call eventually calls down to a file-system specific routine (eg
hfs_select, nfs_select), which always returns true. Take a look...
Well, that's quite ok, as long as the writes are indeed not blocking
(nor returning EAGAIN).
--
Pelle Johansson
<email@hidden>
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.