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.
In reply to Re: nonblocking socket back to blocking
by BrowserUk
in thread nonblocking socket back to blocking
by netrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |