diff options
| author | Christian Grothoff <christian@grothoff.org> | 2016-06-02 09:36:24 +0200 |
|---|---|---|
| committer | Christian Grothoff <christian@grothoff.org> | 2016-06-02 09:36:24 +0200 |
| commit | 7680ebcbe1de0c03f1082f5576d2d14ed9edaa40 (patch) | |
| tree | 0ecf31cbd0939ca1ea53ebbd8d0faa3fa80e97e3 /src | |
| parent | 06fe1d34f3c56650204f751b44b2f19fcec892ac (diff) | |
check fcntl() return value
Diffstat (limited to 'src')
| -rw-r--r-- | src/exchange/taler-exchange-httpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index 45935f17..8ee33c64 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 */ |
