aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------contrib/gana0
-rw-r--r--src/exchange/taler-exchange-httpd.c9
2 files changed, 6 insertions, 3 deletions
diff --git a/contrib/gana b/contrib/gana
-Subproject 7048773eed952c30e4bc8e30d7caed083c18565
+Subproject d436db3d35975f820a69c4b55b3465c180a1003
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index b54d450d4..ce35f5adf 100644
--- 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",