mirror of
https://github.com/corda/corda.git
synced 2025-01-17 10:20:02 +00:00
Don't keep xterm open if java was killed by user. (#678)
This commit is contained in:
parent
63d5aa03e9
commit
42d0a3c638
@ -94,7 +94,8 @@ end tell""")
|
|||||||
listOf("cmd", "/C", "start ${command.joinToString(" ")}")
|
listOf("cmd", "/C", "start ${command.joinToString(" ")}")
|
||||||
}
|
}
|
||||||
OS.LINUX -> {
|
OS.LINUX -> {
|
||||||
val command = "${unixCommand()} || sh"
|
// Start shell to keep window open unless java terminated normally or due to SIGTERM:
|
||||||
|
val command = "${unixCommand()}; [ $? -eq 0 -o $? -eq 143 ] || sh"
|
||||||
if (isTmux()) {
|
if (isTmux()) {
|
||||||
listOf("tmux", "new-window", "-n", nodeName, command)
|
listOf("tmux", "new-window", "-n", nodeName, command)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user