exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 421f09ca5d1326e01f65d3eeec41c2a34f2d026b
parent 74b23809f3e100ad7d63cd746fd5ff3a93b4fdd5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 24 Jun 2024 09:00:04 +0200

-fix fd handling bug

Diffstat:
Msrc/exchange/taler-exchange-httpd.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c @@ -2394,9 +2394,12 @@ run_fake_client (void) serve_port); if (0 == (cld = fork ())) { - GNUNET_break (0 == close (0)); - GNUNET_break (0 == dup2 (fd, 0)); - GNUNET_break (0 == close (fd)); + if (STDIN_FILENO != fd) + { + GNUNET_break (0 == close (0)); + GNUNET_break (0 == dup2 (fd, 0)); + GNUNET_break (0 == close (fd)); + } if ( (0 != execlp ("nc", "nc", "localhost",