We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66221b commit 19909c4Copy full SHA for 19909c4
judge/runguard.c
@@ -1217,7 +1217,9 @@ int main(int argc, char **argv)
1217
1218
cgroup_create();
1219
1220
- unshare(CLONE_FILES|CLONE_FS|CLONE_NEWIPC|CLONE_NEWNET|CLONE_NEWNS|CLONE_NEWUTS|CLONE_SYSVSEM);
+ if ( unshare(CLONE_FILES|CLONE_FS|CLONE_NEWIPC|CLONE_NEWNET|CLONE_NEWNS|CLONE_NEWUTS|CLONE_SYSVSEM)!=0 ) {
1221
+ error(errno, "calling unshare");
1222
+ }
1223
1224
/* Check if any Linux Out-Of-Memory killer adjustments have to
1225
* be made. The oom_adj or oom_score_adj is inherited by child
0 commit comments