Skip to content

Commit e9b351a

Browse files
authored
Make MillBuildServer#evaluatorRequestsThread a daemon thread (#5967)
Attempts to fix #5771, where it appears this thread is hanging around preventing proper process shutdown
1 parent 28f1baf commit e9b351a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runner/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,8 @@ private class MillBuildServer(
892892
}
893893
}
894894

895+
// Make this a daemon thread so if the main thread exits this doesn't keep the process alive
896+
evaluatorRequestsThread.setDaemon(true)
895897
evaluatorRequestsThread.start()
896898

897899
protected def handlerEvaluators[V](

0 commit comments

Comments
 (0)