Remove error if i doesn't exist, remove useless line
This commit is contained in:
parent
53842e8582
commit
659593c60d
|
@ -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…
Reference in New Issue