summaryrefslogtreecommitdiff
path: root/java/src/Ice/Application.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-05-09 16:26:20 +0000
committerMark Spruiell <mes@zeroc.com>2003-05-09 16:26:20 +0000
commit2ebf161195d3e64226cbf08033d824cef05daac8 (patch)
tree25476a928d5176477c2c31bb824004c64b1c5823 /java/src/Ice/Application.java
parentAnother dllExport fix. (diff)
downloadice-2ebf161195d3e64226cbf08033d824cef05daac8.tar.bz2
ice-2ebf161195d3e64226cbf08033d824cef05daac8.tar.xz
ice-2ebf161195d3e64226cbf08033d824cef05daac8.zip
shutdownOnInterrupt is now the default
Diffstat (limited to 'java/src/Ice/Application.java')
-rw-r--r--java/src/Ice/Application.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/java/src/Ice/Application.java b/java/src/Ice/Application.java
index 4d3186e8827..792344b6066 100644
--- a/java/src/Ice/Application.java
+++ b/java/src/Ice/Application.java
@@ -41,8 +41,7 @@ public abstract class Application
{
if(_communicator != null)
{
- System.err.println(appName + ": only one instance of the " +
- "Application class can be used");
+ System.err.println(appName + ": only one instance of the Application class can be used");
return 1;
}
@@ -63,6 +62,11 @@ public abstract class Application
{
_communicator = Util.initialize(argHolder);
}
+
+ // The default is to shutdown when a signal is received
+ //
+ shutdownOnInterrupt();
+
status = run(argHolder.value);
}
catch(LocalException ex)