Commit 7c2dea1615fa1488c9cadc9f5aeb885c1ba26a60

Nick Mathewson 2010-07-13T11:06:08

Pass flags to fcntl(F_SETFL) and fcntl(F_SETFD) as int, not long Everybody but Linux documents this as taking an int, and Linux is very tolerant of getting an int instead. If it weren't, everybody doing fcntl(fd,F_SETFL,O_NONBLOCK) would break, since the glibc headers define O_NONBLOCK as an int literal.