Hi, On 06/14/2013 10:19 AM, Chris Dickens wrote: > Hi, > > All looks good now, thanks! > > I actually went with the F_GETFL/F_SETFL approach first, then I saw how > poll_posix.c did it with usbi_pipe() and decided to go that way, for > consistency. > > int usbi_pipe(int pipefd[2]) > { > int ret = pipe(pipefd); > if (ret != 0) { > return ret; > } > ret = fcntl(pipefd[1], F_SETFD, O_NONBLOCK);
Oh, that looks broken, but if it worked for you (Chris), I guess this is allowed too. Maybe Nathan did things this way because of Mac OS X needing it this way (which does not matter for linux_udev.c obviously). Nathan, what does the fctnl documentation on Mac OS X say on this? Regards, Hans ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel