From ca7946c9d7abd695425a8669a16fb7f667a9bc3d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 17 Oct 2023 13:55:04 +0100 Subject: Fix exiting with a success when the child dies before the parent. I have no idea why I didn't see this before now. Closes #1369. Closes #2064. --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 7d92feb85..a1a24a9df 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -246,7 +246,7 @@ namespace // happened and the parent should exit. while (kill(childpid, 0) != -1) sleep(1); - InspIRCd::QuickExit(EXIT_SUCCESS); + InspIRCd::QuickExit(EXIT_FAILURE); } else { -- cgit v1.3.1-10-gc9f91