mirror of https://github.com/sbt/sbt.git
nohup the server from GNU Emacs
This commit is contained in:
parent
c1c04387d0
commit
75311c6e57
|
|
@ -330,8 +330,14 @@ class NetworkClient(
|
|||
|
||||
val cmd = List(arguments.sbtScript) ++ arguments.sbtArguments ++
|
||||
List(BasicCommandStrings.DashDashDetachStdio, BasicCommandStrings.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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue