mirror of
https://github.com/corda/corda.git
synced 2024-12-30 01:39:04 +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(" ")}")
|
||||
}
|
||||
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()) {
|
||||
listOf("tmux", "new-window", "-n", nodeName, command)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user