This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tango-tfe/script/user/r3_tfe
2019-06-21 16:17:29 +08:00

21 lines
441 B
Bash

#!/bin/sh
while [ 1 ]; do
count=`ls -l core.* |wc -l`
echo $count
if [ $count -lt 5 ]
then
echo "set unlimited"
ulimit -c unlimited
else
ulimit -c 0
fi
export ASAN_OPTIONS=abort_on_error=1:log_path=./asan.log
ulimit -n 655350
./bin/tfe > /dev/null
echo program crashed, restart at `date +"%w %Y/%m/%d, %H:%M:%S"` >> RESTART.log
sleep 1
done