fix bug omitting stdout, fix cpp compiler flag

This commit is contained in:
Brian Seymour 2018-09-21 23:47:30 -05:00
parent eec7ec26fa
commit 9e0c0c40f5
2 changed files with 2 additions and 2 deletions

View File

@ -59,6 +59,6 @@ docker run \
piston \
runuser \
-l runner \
-c "/$bin /$file $file | head -c 65536 2>&1"
-c "/$bin /$file $file 2>&1 | head -c 65536"
rm -f /tmp/$file

View File

@ -1,4 +1,4 @@
#!/bin/sh
g++ -o binary -x c $1
g++ -o binary -x c++ $1
timeout -s KILL 3 ./binary