summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-06 10:11:15 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-06 10:11:15 +0100
commit5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5 (patch)
tree972f236232a129d97eaebf70436d59e096fb14af
parenta79b67c726e7a2d2ef44102e883b98423d129fbd (diff)
downloadexchange-5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5.tar.gz
exchange-5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5.tar.bz2
exchange-5fbe77bb76b2c8d76e11ab38bbb08be58e59aab5.zip
fix return value from main() when run with -h/-v
m---------contrib/gana0
-rw-r--r--src/exchange/taler-exchange-httpd.c10
2 files changed, 6 insertions, 4 deletions
diff --git a/contrib/gana b/contrib/gana
-Subproject 9d38f712c153727dbb895673d6d9841be57c12c
+Subproject b7a683ef6b4ac653ab46517341f626c84c66dff
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
index 98120a22..aa477eb2 100644
--- a/src/exchange/taler-exchange-httpd.c
+++ b/src/exchange/taler-exchange-httpd.c
@@ -1302,11 +1302,13 @@ main (int argc,
int fh = -1;
enum TALER_MHD_GlobalOptions go;
- if (0 >=
- GNUNET_GETOPT_run ("taler-exchange-httpd",
- options,
- argc, argv))
+ ret = GNUNET_GETOPT_run ("taler-exchange-httpd",
+ options,
+ argc, argv);
+ if (ret < 0)
return 1;
+ if (0 == ret)
+ return 0;
if (0 == num_threads)
{
cpu_set_t mask;