From 0fbd7895723403722d620e45ac3f236b9342dceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 17 Aug 2018 17:35:41 +0300 Subject: [PATCH] MXS-2019: Fix atexit handlers The code now registers all functions once instead of one function multiple times. --- server/core/gateway.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/gateway.cc b/server/core/gateway.cc index 8116adee8..e229f9612 100644 --- a/server/core/gateway.cc +++ b/server/core/gateway.cc @@ -1464,7 +1464,7 @@ int main(int argc, char **argv) */ for (int i = 0; exitfunp[i] != NULL; i++) { - int l = atexit(*exitfunp); + int l = atexit(exitfunp[i]); if (l != 0) {