Node launcher gets IOException from System.in and fails when started as a detached daemon on Linux.

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@681252 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jsdelfino 2008-07-31 01:27:51 +00:00
parent fdcf095935
commit f47f670749
3 changed files with 24 additions and 3 deletions

View file

@ -90,7 +90,14 @@ public class DomainManagerLauncher {
logger.info("Press enter to shutdown.");
try {
System.in.read();
} catch (IOException e) {}
} catch (IOException e) {
// Wait forever
Object lock = new Object();
synchronized(lock) {
lock.wait();
}
}
// Stop the domain manager
try {

View file

@ -79,7 +79,14 @@ public class NodeDaemonLauncher {
logger.info("Press enter to shutdown.");
try {
System.in.read();
} catch (IOException e) {}
} catch (IOException e) {
// Wait forever
Object lock = new Object();
synchronized(lock) {
lock.wait();
}
}
// Stop the node daemon
try {

View file

@ -129,7 +129,14 @@ public class NodeLauncher {
logger.info("Press enter to shutdown.");
try {
System.in.read();
} catch (IOException e) {}
} catch (IOException e) {
// Wait forever
Object lock = new Object();
synchronized(lock) {
lock.wait();
}
}
// Stop the node
try {