From: Amitay Isaacs Date: Tue, 26 Jun 2018 08:39:09 +0000 (+1000) Subject: ctdb-daemon: Set environment variable if running in interactive mode X-Git-Tag: tevent-0.9.37~131 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=271407ab16f17282b3e63b6459d5511ec00c6d2d;p=thirdparty%2Fsamba.git ctdb-daemon: Set environment variable if running in interactive mode CTDB_INTERACTIVE will be used to tell the other daemons if the ctdb daemon is started in interactive mode. This is primarily used only for testing. Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c index 146524d7a84..49e5b304d92 100644 --- a/ctdb/server/ctdbd.c +++ b/ctdb/server/ctdbd.c @@ -234,6 +234,7 @@ int main(int argc, const char *argv[]) /* Log to stderr (ignoring configuration) when running as interactive */ if (interactive) { logging_location = "file:"; + setenv("CTDB_INTERACTIVE", "true", 1); } else { logging_location = logging_conf_location(conf); }