Been there, done that.
The last one of those I did was using "||" when I meant to use "|". A logical and a bitwise OR are two different things, and "FD_READ || FD_WRITE || FD_ACCEPT" does not work particularly well.
Took me a good hour to track that one down.
__________________
-- Torkell

|