aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/prosodyctl/shell.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl/shell.lua b/util/prosodyctl/shell.lua
index bce27b94..8cf7df69 100644
--- a/util/prosodyctl/shell.lua
+++ b/util/prosodyctl/shell.lua
@@ -39,7 +39,7 @@ local function repl(client)
if have_readline then
readline.save_history();
end
- os.exit();
+ os.exit(0, true);
end
send_line(client, line);
end
@@ -112,7 +112,7 @@ local function start(arg) --luacheck: ignore 212/arg
client.events.add_handler("disconnected", function ()
print("--- session closed ---");
- os.exit();
+ os.exit(0, true);
end);
client.events.add_handler("received", function (stanza)