Commit 1bdb2caf by Ned Batchelder

Don't start the killer thread that doesn't work yet.

parent eb0803a6
...@@ -159,10 +159,11 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None): ...@@ -159,10 +159,11 @@ def jail_code(command, code=None, files=None, argv=None, stdin=None):
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
) )
# TODO: time limiting # TODO: time limiting. The ProcessKillerThread doesn't work yet, so
# don't launch it.
# killer = ProcessKillerThread(subproc)
# killer.start()
killer = ProcessKillerThread(subproc)
killer.start()
result = JailResult() result = JailResult()
result.stdout, result.stderr = subproc.communicate(stdin) result.stdout, result.stderr = subproc.communicate(stdin)
result.status = subproc.returncode result.status = subproc.returncode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment