Move log message to print before shutdown to avoid potential mixup with other log messages during shutdown.

This commit is contained in:
Sönke Ludwig 2017-09-21 14:35:53 +02:00
parent 9e0b5a7821
commit a93b6e1cb1

View file

@ -1429,10 +1429,9 @@ private extern(C) void extrap()
private extern(C) void onSignal(int signal) private extern(C) void onSignal(int signal)
nothrow { nothrow {
logInfo("Received signal %d. Shutting down.", signal);
atomicStore(st_term, true); atomicStore(st_term, true);
try st_threadsSignal.emit(); catch (Throwable) {} try st_threadsSignal.emit(); catch (Throwable) {}
logInfo("Received signal %d. Shutting down.", signal);
} }
private extern(C) void onBrokenPipe(int signal) private extern(C) void onBrokenPipe(int signal)