Commited Sat. December 08, 2007 at 06:33:53 PM EDT
use kqueue on BSD/OS X (better handling of otherwise unsupported file system devices, like tty serial ports), and handle interrupted read/write (EINTR) as a return to caller, not as a close and reopen stream