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:
parent
fdcf095935
commit
f47f670749
3 changed files with 24 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue