give the shutdown hook thread a name

This commit is contained in:
jrandom
2004-06-19 23:13:09 +00:00
committed by zzz
parent 76c374ef06
commit 3835fe3960

View File

@ -438,8 +438,14 @@ public class LogManager {
_writer.flushRecords(); _writer.flushRecords();
} }
private static int __id = 0;
private class ShutdownHook extends Thread { private class ShutdownHook extends Thread {
private int _id;
public ShutdownHook() {
_id = ++__id;
}
public void run() { public void run() {
setName("Log " + _id + " shutdown ");
shutdown(); shutdown();
} }
} }