Skip to content

Commit 7545e02

Browse files
committed
fix(judge): bind dev and proc to fix #270
1 parent 188db5d commit 7545e02

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/judgingthread.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,8 @@ void JudgingThread::runProgram() {
10291029
auto *runner = new QProcess(this);
10301030
QStringList argumentsList;
10311031

1032+
argumentsList << "--dev" << "/dev";
1033+
argumentsList << "--proc" << "/proc";
10321034
argumentsList << "--ro-bind" << "/usr" << "/usr";
10331035
argumentsList << "--symlink" << "/usr/lib" << "/lib";
10341036
argumentsList << "--symlink" << "/usr/lib64" << "/lib64";

0 commit comments

Comments
 (0)