Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SI-6488: Stop I/O threads prior to Process destruction

  • Loading branch information...
commit cb6aeef2adc5138e0fe294ec1c7841ed367c6b00 1 parent 6d6e328
Declan Conlon authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/library/scala/sys/process/ProcessImpl.scala
View
5 src/library/scala/sys/process/ProcessImpl.scala
@@ -222,7 +222,10 @@ private[process] trait ProcessImpl {
p.exitValue()
}
override def destroy() = {
- try p.destroy()
+ try{
+ outputThreads foreach (_.stop())
+ p.destroy()
+ }
finally inputThread.interrupt()
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.