From f8beabcaa885bfef30f2bd4011d040186cf9ea78 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 21 Apr 2009 19:16:11 +0000
Subject: [PATCH] Fix for issue 3011: 

---
 opends/src/server/org/opends/server/core/ServerShutdownMonitor.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java b/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java
index 15ece15..c16952c 100644
--- a/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java
+++ b/opends/src/server/org/opends/server/core/ServerShutdownMonitor.java
@@ -22,12 +22,13 @@
  * CDDL HEADER END
  *
  *
- *      Copyright 2006-2008 Sun Microsystems, Inc.
+ *      Copyright 2006-2009 Sun Microsystems, Inc.
  */
 package org.opends.server.core;
 
 
 
+import org.opends.server.api.DirectoryThread;
 import java.util.Iterator;
 import java.util.LinkedList;
 
@@ -38,7 +39,7 @@
  * shutdown process and may help nudge it along if it appears to get hung.
  */
 public class ServerShutdownMonitor
-       extends Thread
+       extends DirectoryThread
 {
   // Indicates whether the monitor has completed and the shutdown may be
   // finalized with a call to System.exit;
@@ -56,7 +57,7 @@
    */
   public ServerShutdownMonitor()
   {
-    setName("Directory Server Shutdown Monitor");
+    super("Directory Server Shutdown Monitor");
     setDaemon(true);
 
 
@@ -71,7 +72,7 @@
     // we'll make sure to allocate enough room for double the threads that we
     // think are currently running.
     threadList = new LinkedList<Thread>();
-    ThreadGroup threadGroup = DirectoryServer.getDirectoryThreadGroup();
+    ThreadGroup threadGroup = DirectoryThread.DIRECTORY_THREAD_GROUP;
     Thread[] threadArray = new Thread[threadGroup.activeCount() * 2];
     int numThreads = threadGroup.enumerate(threadArray, true);
     for (int i=0; i < numThreads; i++)

--
Gitblit v1.10.0