diff --git a/stress.sh b/stress.sh index c213e73..9fb24e0 100755 --- a/stress.sh +++ b/stress.sh @@ -57,7 +57,7 @@ for (( i = 0; i < ITERATIONS; i++ )); do if [[ $exit_code -eq 139 ]]; then echo "Segfault detected!" echo "Arguments: $arguments" >> "$LOG_FILE" - break + exit 1 # Exit the script with an error fi echo "-----------------------------------------" done