Move log message to print before shutdown to avoid potential mixup with other log messages during shutdown.
This commit is contained in:
parent
9e0b5a7821
commit
a93b6e1cb1
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue