From a75c246db5f7242f68b0538c51b43084f8d1902f Mon Sep 17 00:00:00 2001 From: lhchavez Date: Sat, 2 May 2015 07:57:53 +0000 Subject: [PATCH] Workaround for #14 I am still not sure what is causing this, but re-creating the pipes each time seems to not trigger the issue. --- runner/src/main/scala/com/omegaup/runner/Runner.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runner/src/main/scala/com/omegaup/runner/Runner.scala b/runner/src/main/scala/com/omegaup/runner/Runner.scala index 768de40..4204608 100644 --- a/runner/src/main/scala/com/omegaup/runner/Runner.scala +++ b/runner/src/main/scala/com/omegaup/runner/Runner.scala @@ -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,