noticed a little error: SOCK_NONBLOCK is a oring flag, not a value, plus it's encoded in octal in the linux headers.