Don't keep xterm open if java was killed by user. (#678)

This commit is contained in:
Andrzej Cichocki 2017-05-16 10:56:17 +01:00 committed by GitHub
parent 63d5aa03e9
commit 42d0a3c638

View File

@ -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 {