api: harden file count

This commit is contained in:
Thomas Hobson 2021-02-22 22:52:04 +13:00
parent 9b1a9bf8b3
commit e31e66aad5
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class Job {
async safe_call(file, args, timeout){
return await new Promise((resolve, reject) => {
const unshare = config.enable_unshare ? ['unshare','-n','-r'] : [];
const prlimit = ['prlimit','--nproc=64'];
const prlimit = ['prlimit','--nproc=64','--nofile=2048'];
const proc_call = [
...prlimit,