You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/05/21 18:03:11 UTC
svn commit: r658733 -
/servicemix/smx4/kernel/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java
Author: gnodet
Date: Wed May 21 09:03:10 2008
New Revision: 658733
URL: http://svn.apache.org/viewvc?rev=658733&view=rev
Log:
SMX4KNL-41: When using the remote command on the client from the command line, the proces does not exit correctly
Modified:
servicemix/smx4/kernel/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java
Modified: servicemix/smx4/kernel/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/kernel/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java?rev=658733&r1=658732&r2=658733&view=diff
==============================================================================
--- servicemix/smx4/kernel/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java (original)
+++ servicemix/smx4/kernel/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/GShell.java Wed May 21 09:03:10 2008
@@ -121,6 +121,12 @@
} else {
mainService.setExitCode(value != null ? 1 : 0);
}
+ log.info("Exiting shell due to terminated command");
+ try {
+ getBundleContext().getBundle(0).stop();
+ } catch (BundleException e2) {
+ log.info("Caught exception while shutting down framework: " + e2, e2);
+ }
}
} else {
// Otherwise go into a command shell.