Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion os/src-jvm/ProcessOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ case class ProcGroup private[os] (commands: Seq[proc]) {
runnable.run()
} catch {
case e: IOException =>
println(s"Broken pipe in process $index")
queue.put(index)
}
}
Expand Down
2 changes: 0 additions & 2 deletions os/src-jvm/SubProcess.scala
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,11 @@ class ProcessPipeline(
var pipelineRunning = true
while (pipelineRunning) {
val brokenPipeIndex = queue.take()
println("Killing " + brokenPipeIndex)
if (brokenPipeIndex == processes.length) { // Special case signaling finished pipeline
pipelineRunning = false
} else {
processes(brokenPipeIndex).destroyForcibly()
}
println("Processes status: " + processes.map(_.isAlive()))
}
new Thread(
new Runnable {
Expand Down