docker: fix stderr output bypassing limit

This commit is contained in:
1computer1 2020-06-22 02:39:05 -04:00
parent f317d4b704
commit a4b6fccf0b

View file

@ -224,7 +224,7 @@ evalCode lang numRetries code = withContainer $ \cnt -> do
, show snowflake , show snowflake
, " " , " "
, cnt , cnt
, " /bin/sh /var/run/run.sh | head -c 4K" , " /bin/sh /var/run/run.sh 2>&1 | head -c 4K"
] ]
pr = setStdin (byteStringInput $ cs code) $ shell cmd pr = setStdin (byteStringInput $ cs code) $ shell cmd
logDebug ["Executing with stdin `", cs cmd, "`"] logDebug ["Executing with stdin `", cs cmd, "`"]