diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-07-29 23:56:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-07-29 23:56:46 +0200 |
commit | 0ef7c0a0b716785e7d1b0233e622d2e7267a0280 (patch) | |
tree | ff4b46d1182acd71fa5c6e29b9aaa786dbcf2b22 /src/auditor/taler-auditor-httpd.c | |
parent | 1b419adab48fc0fd915835e0d57c5923e515280c (diff) | |
download | exchange-0ef7c0a0b716785e7d1b0233e622d2e7267a0280.tar.xz |
fix #6960
Diffstat (limited to 'src/auditor/taler-auditor-httpd.c')
-rw-r--r-- | src/auditor/taler-auditor-httpd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/auditor/taler-auditor-httpd.c b/src/auditor/taler-auditor-httpd.c index 36d0547f8..d68ec7593 100644 --- a/src/auditor/taler-auditor-httpd.c +++ b/src/auditor/taler-auditor-httpd.c @@ -576,9 +576,9 @@ main (int argc, options, argc, argv); if (GNUNET_NO == ret) - return 0; + return EXIT_SUCCESS; if (GNUNET_SYSERR == ret) - return 3; + return EXIT_FAILURE; } go = TALER_MHD_GO_NONE; if (auditor_connection_close) @@ -599,13 +599,13 @@ main (int argc, "Malformed configuration file `%s', exiting ...\n", cfgfile); GNUNET_free (cfgfile); - return 1; + return EXIT_NOTCONFIGURED; } GNUNET_free (cfgfile); if (GNUNET_OK != auditor_serve_process_config ()) - return 1; + return EXIT_NOTCONFIGURED; TEAH_DEPOSIT_CONFIRMATION_init (); /* check for systemd-style FD passing */ listen_pid = getenv ("LISTEN_PID"); @@ -649,7 +649,7 @@ main (int argc, if (-1 == fh) { TEAH_DEPOSIT_CONFIRMATION_done (); - return 1; + return EXIT_NOPERMISSION; /* most likely at least */ } } @@ -674,7 +674,7 @@ main (int argc, GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to start HTTP server.\n"); TEAH_DEPOSIT_CONFIRMATION_done (); - return 1; + return EXIT_FAILURE; } /* normal behavior */ @@ -751,7 +751,7 @@ main (int argc, TALER_EXCHANGEDB_plugin_unload (TAH_eplugin); TAH_eplugin = NULL; TEAH_DEPOSIT_CONFIRMATION_done (); - return (GNUNET_SYSERR == ret) ? 1 : 0; + return (GNUNET_SYSERR == ret) ? EXIT_FAILURE : EXIT_SUCCESS; } |