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 <morth@morth.nu> _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Pelle Johansson