Nmap Development mailing list archives

Re: Next issue (Re: Help: fd_set porting to Win32?)


From: doug () hcsw org
Date: Sun, 1 Jun 2008 15:09:22 -0700

And one more thing. Sorry if this is obvious but just in case
you didn't know: select()/poll()/kqueue()/epoll() don't do
anything meaningful for normal files. They are only for descriptors
that are subject to flow control (like sockets). Non-blocking
IO is the same: read() to regular files WILL block while the
disk's head seeks to the location on disk. You can't avoid
this with conventional unix APIs (but see linux's aio etc).

Doug

Attachment: signature.asc
Description: Digital signature


_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org

Current thread: