From 9b40a9cad7d184b2cdf82d5d05b6cbb25350e998 Mon Sep 17 00:00:00 2001 From: Susan Hinrichs Date: Tue, 15 Dec 2020 17:57:19 +0000 Subject: [PATCH] Replace ::exit() with _exit() to avoid secondary cleanup cores --- src/tscore/ink_error.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tscore/ink_error.cc b/src/tscore/ink_error.cc index e2f775e59c3..3bf866bf85d 100644 --- a/src/tscore/ink_error.cc +++ b/src/tscore/ink_error.cc @@ -52,7 +52,7 @@ void ink_fatal_va(const char *fmt, va_list ap) { fatal_va("Fatal: ", fmt, ap); - ::exit(70); // 70 corresponds to EX_SOFTWARE in BSD's sysexits. As good a status as any. + _exit(70); // 70 corresponds to EX_SOFTWARE in BSD's sysexits. As good a status as any. } void @@ -64,14 +64,14 @@ ink_fatal(const char *message_format, ...) fatal_va("Fatal: ", message_format, ap); va_end(ap); - ::exit(70); // 70 corresponds to EX_SOFTWARE in BSD's sysexits. As good a status as any. + _exit(70); // 70 corresponds to EX_SOFTWARE in BSD's sysexits. As good a status as any. } void ink_emergency_va(const char *fmt, va_list ap) { fatal_va("Emergency: ", fmt, ap); - ::exit(UNRECOVERABLE_EXIT); + _exit(UNRECOVERABLE_EXIT); } void @@ -84,7 +84,7 @@ ink_emergency(const char *message_format, ...) // Should never reach here since ink_emergency_va calls exit() va_end(ap); - ::exit(UNRECOVERABLE_EXIT); + _exit(UNRECOVERABLE_EXIT); } void