mirror of https://github.com/sbt/sbt.git
nohup the server from GNU Emacs
This commit is contained in:
parent
bb8b097f5a
commit
88baafa034
|
|
@ -337,8 +337,13 @@ class NetworkClient(
|
||||||
List(DashDashDetachStdio, DashDashServer)
|
List(DashDashDetachStdio, DashDashServer)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://github.com/sbt/sbt/issues/6271
|
||||||
|
val nohup =
|
||||||
|
if (Util.isEmacs && !Util.isWindows) List("nohup")
|
||||||
|
else Nil
|
||||||
|
|
||||||
val processBuilder =
|
val processBuilder =
|
||||||
new ProcessBuilder(cmd: _*)
|
new ProcessBuilder((nohup ++ cmd): _*)
|
||||||
.directory(arguments.baseDirectory)
|
.directory(arguments.baseDirectory)
|
||||||
.redirectInput(Redirect.PIPE)
|
.redirectInput(Redirect.PIPE)
|
||||||
processBuilder.environment.put(Terminal.TERMINAL_PROPS, props)
|
processBuilder.environment.put(Terminal.TERMINAL_PROPS, props)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue