in reply to nonblocking socket back to blocking
O_NONBLOCK is a bit-flag. To unset it, try:
fcntl(fd, F_SETFL, ~O_NONBLOCK)
Whether that will work probably depends upon which interpretation of POSIX your system thinks it's complying to.
You might want to query the current setting and just remove the nonblock bit.
|
|---|