mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 18:14:04 +02:00
nohup the server from GNU Emacs
This commit is contained in:
@@ -337,8 +337,13 @@ class NetworkClient(
|
||||
List(DashDashDetachStdio, DashDashServer)
|
||||
}
|
||||
|
||||
// https://github.com/sbt/sbt/issues/6271
|
||||
val nohup =
|
||||
if (Util.isEmacs && !Util.isWindows) List("nohup")
|
||||
else Nil
|
||||
|
||||
val processBuilder =
|
||||
new ProcessBuilder(cmd: _*)
|
||||
new ProcessBuilder((nohup ++ cmd): _*)
|
||||
.directory(arguments.baseDirectory)
|
||||
.redirectInput(Redirect.PIPE)
|
||||
processBuilder.environment.put(Terminal.TERMINAL_PROPS, props)
|
||||
|
||||
Reference in New Issue
Block a user