Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
codejail
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
codejail
Commits
a320d43c
Commit
a320d43c
authored
Jan 13, 2017
by
Ned Batchelder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow 15 threads instead of 5
parent
0b2dc694
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
codejail/jail_code.py
+2
-2
No files found.
codejail/jail_code.py
View file @
a320d43c
...
@@ -76,7 +76,7 @@ LIMITS = {
...
@@ -76,7 +76,7 @@ LIMITS = {
# Size of files creatable, in bytes, defaulting to nothing can be written.
# Size of files creatable, in bytes, defaulting to nothing can be written.
"FSIZE"
:
0
,
"FSIZE"
:
0
,
# The number of processes and threads to allow.
# The number of processes and threads to allow.
"NPROC"
:
5
,
"NPROC"
:
1
5
,
# Whether to use a proxy process or not. None means use an environment
# Whether to use a proxy process or not. None means use an environment
# variable to decide. NOTE: using a proxy process is NOT THREAD-SAFE, only
# variable to decide. NOTE: using a proxy process is NOT THREAD-SAFE, only
# one thread can use CodeJail at a time if you are using a proxy process.
# one thread can use CodeJail at a time if you are using a proxy process.
...
@@ -107,7 +107,7 @@ def set_limit(limit_name, value):
...
@@ -107,7 +107,7 @@ def set_limit(limit_name, value):
in bytes. The default is 0 (no files may be created).
in bytes. The default is 0 (no files may be created).
* `"NPROC"`: the maximum number of process or threads creatable by the
* `"NPROC"`: the maximum number of process or threads creatable by the
jailed code. The default is 5.
jailed code. The default is
1
5.
* `"PROXY"`: 1 to use a proxy process, 0 to not use one. This isn't
* `"PROXY"`: 1 to use a proxy process, 0 to not use one. This isn't
really a limit, sorry about that.
really a limit, sorry about that.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment