Return to tcpbench.c CVS log | Up to [local] / src / usr.bin / tcpbench |
version 1.49, 2016/03/28 11:48:38 | version 1.50, 2016/04/06 14:09:06 | ||
---|---|---|---|
|
|
||
} | } | ||
if (sock == -1) | if (sock == -1) | ||
errx(1, "No host found"); | errx(1, "No host found"); | ||
if ((r = fcntl(sock, F_GETFL, 0)) == -1) | if ((r = fcntl(sock, F_GETFL)) == -1) | ||
err(1, "fcntl(F_GETFL)"); | err(1, "fcntl(F_GETFL)"); | ||
r |= O_NONBLOCK; | r |= O_NONBLOCK; | ||
if (fcntl(sock, F_SETFL, r) == -1) | if (fcntl(sock, F_SETFL, r) == -1) |