Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2009-03-18 14:32:56 +0000
committerThomas Watson2009-03-18 14:32:56 +0000
commit587b83417e1e95d8dfe9e36d201799c302ce57e5 (patch)
treee3e67e192f3d27cddcb13478dc1dd84d273a06d9 /bundles/org.eclipse.osgi/console
parent8aa375e175f53e6932af9cab660aebabf1aad580 (diff)
downloadrt.equinox.framework-587b83417e1e95d8dfe9e36d201799c302ce57e5.tar.gz
rt.equinox.framework-587b83417e1e95d8dfe9e36d201799c302ce57e5.tar.xz
rt.equinox.framework-587b83417e1e95d8dfe9e36d201799c302ce57e5.zip
Bug 269194 [console] thread is not shutdown if using console sockets
Diffstat (limited to 'bundles/org.eclipse.osgi/console')
-rw-r--r--bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkConsole.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkConsole.java b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkConsole.java
index 5c45a4b26..c1ddb0e67 100644
--- a/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkConsole.java
+++ b/bundles/org.eclipse.osgi/console/src/org/eclipse/osgi/framework/internal/core/FrameworkConsole.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2008 IBM Corporation and others.
+ * Copyright (c) 2003, 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -473,7 +473,7 @@ public class FrameworkConsole implements Runnable {
lock.wait(); //TODO spurious wakeup not handled
}
setAcceptConnections(false);
- return socket;
+ return shutdown ? null : socket;
}
/**
@@ -487,6 +487,9 @@ public class FrameworkConsole implements Runnable {
public void shutdown() throws IOException {
server.close();
+ synchronized (lock) {
+ lock.notify();
+ }
}
}

Back to the top