From a93b6e1cb1f9015fa62cb9502e1670e545b75df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 21 Sep 2017 14:35:53 +0200 Subject: [PATCH] Move log message to print before shutdown to avoid potential mixup with other log messages during shutdown. --- source/vibe/core/core.d | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/vibe/core/core.d b/source/vibe/core/core.d index 7ec570a..a9d2684 100644 --- a/source/vibe/core/core.d +++ b/source/vibe/core/core.d @@ -1429,10 +1429,9 @@ private extern(C) void extrap() private extern(C) void onSignal(int signal) nothrow { + logInfo("Received signal %d. Shutting down.", signal); atomicStore(st_term, true); try st_threadsSignal.emit(); catch (Throwable) {} - - logInfo("Received signal %d. Shutting down.", signal); } private extern(C) void onBrokenPipe(int signal)