From: Christian Grothoff Date: Mon, 26 Oct 2009 11:59:39 +0000 (+0000) Subject: check here as well X-Git-Tag: initial-import-from-subversion-38251~23225 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=49c318a2342149ff821e4dea2f51c2a2053b7e49;p=oweals%2Fgnunet.git check here as well --- diff --git a/src/util/network.c b/src/util/network.c index d3e93a8d5..30519fe38 100644 --- a/src/util/network.c +++ b/src/util/network.c @@ -155,7 +155,10 @@ socket_set_nodelay (const struct GNUNET_NETWORK_Handle *h) { int value = 1; - setsockopt (h->fd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value)); + if (0 != setsockopt (h->fd, IPPROTO_TCP, TCP_NODELAY, &value, sizeof(value))) + GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, + "setsockopt"); + }