Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
Workaround for #14
Browse files Browse the repository at this point in the history
I am still not sure what is causing this, but re-creating the pipes each
time seems to not trigger the issue.
  • Loading branch information
lhchavez committed May 2, 2015
1 parent 014eef4 commit a75c246
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runner/src/main/scala/com/omegaup/runner/Runner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ class Runner(name: String, sandbox: Sandbox) extends RunnerService with Log with
.mkdir
val pipeDir = new File(binDirectory, s"${interface}_pipes")
pipeDir.mkdir
// Workaround for #14: try to delete and re-create the pipes each run.
new File(pipeDir, "in").delete
new File(pipeDir, "out").delete
using (runtime.exec(Array[String](
"/usr/bin/mkfifo",
new File(pipeDir, "in").getCanonicalPath,
Expand Down

0 comments on commit a75c246

Please sign in to comment.