api: harden file count
This commit is contained in:
parent
9b1a9bf8b3
commit
e31e66aad5
|
@ -71,7 +71,7 @@ class Job {
|
||||||
async safe_call(file, args, timeout){
|
async safe_call(file, args, timeout){
|
||||||
return await new Promise((resolve, reject) => {
|
return await new Promise((resolve, reject) => {
|
||||||
const unshare = config.enable_unshare ? ['unshare','-n','-r'] : [];
|
const unshare = config.enable_unshare ? ['unshare','-n','-r'] : [];
|
||||||
const prlimit = ['prlimit','--nproc=64'];
|
const prlimit = ['prlimit','--nproc=64','--nofile=2048'];
|
||||||
|
|
||||||
const proc_call = [
|
const proc_call = [
|
||||||
...prlimit,
|
...prlimit,
|
||||||
|
|
Loading…
Reference in New Issue