return(-1);
}
/* set to nonblock - we need this for some obscure situations */
if (fcntl(s, F_SETFL, O_NONBLOCK) < 0) {
snprintf(errormessage, SIZ, "can't set socket to non-blocking: %s", strerror(errno));
return(-1);
}
/* set to nonblock - we need this for some obscure situations */
if (fcntl(s, F_SETFL, O_NONBLOCK) < 0) {
snprintf(errormessage, SIZ, "can't set socket to non-blocking: %s", strerror(errno));