mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-20 20:16:26 +02:00
api: add unshare back
This commit is contained in:
parent
00bb5be55b
commit
0ebdcadf12
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class Job {
|
|||
|
||||
async safe_call(file, args){
|
||||
return await new Promise((resolve, reject) => {
|
||||
const proc_call = ['bash',file, ...args]
|
||||
const proc_call = ['unshare','-n','-r','bash',file, ...args].slice(!config.enable_unshare*3)
|
||||
var stdout = '';
|
||||
var stderr = '';
|
||||
const proc = cp.spawn(proc_call[0], proc_call.splice(1) ,{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue