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)
|
||||
}
|
||||
|
||||
// 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