From 7680ebcbe1de0c03f1082f5576d2d14ed9edaa40 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 2 Jun 2016 09:36:24 +0200 Subject: [PATCH] check fcntl() return value --- src/exchange/taler-exchange-httpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 45935f172..8ee33c64b 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -791,7 +791,9 @@ main (int argc, fh = -1; } flags |= FD_CLOEXEC; - fcntl (fh, F_SETFD, flags); + if (0 != fcntl (fh, F_SETFD, flags)) + GNUNET_log_strerror (GNUNET_ERROR_TYPE_ERROR, + "fcntl"); } /* consider unix path */