mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
Remove error if i doesn't exist, remove useless line
This commit is contained in:
parent
53842e8582
commit
659593c60d
2 changed files with 1 additions and 2 deletions
|
@ -18,6 +18,7 @@ basepath="/var/lib/lxc/piston/rootfs"
|
||||||
exec 200>$dir/lockfile
|
exec 200>$dir/lockfile
|
||||||
flock 200
|
flock 200
|
||||||
|
|
||||||
|
touch $dir/i
|
||||||
runner=$(cat $dir/i)
|
runner=$(cat $dir/i)
|
||||||
let 'runner = runner % 150 + 1'
|
let 'runner = runner % 150 + 1'
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,6 @@ function execute(language, source, stdin = '', args = []) {
|
||||||
});
|
});
|
||||||
|
|
||||||
process.on('exit', code => {
|
process.on('exit', code => {
|
||||||
unlinkSync(sourceFile);
|
|
||||||
|
|
||||||
stderr = stderr.trim().substring(0, OUTPUT_LIMIT);
|
stderr = stderr.trim().substring(0, OUTPUT_LIMIT);
|
||||||
stdout = stdout.trim().substring(0, OUTPUT_LIMIT);
|
stdout = stdout.trim().substring(0, OUTPUT_LIMIT);
|
||||||
output = output.trim().substring(0, OUTPUT_LIMIT);
|
output = output.trim().substring(0, OUTPUT_LIMIT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue