From 06a49f8eaefd07571cb6e4e8674e84cae8208d42 Mon Sep 17 00:00:00 2001 From: lemaitre-aneo Date: Wed, 17 Apr 2024 17:44:14 +0200 Subject: [PATCH] Add crash log for any error --- Worker/src/DLLWorker/entry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Worker/src/DLLWorker/entry.sh b/Worker/src/DLLWorker/entry.sh index c9db39de..d461737d 100755 --- a/Worker/src/DLLWorker/entry.sh +++ b/Worker/src/DLLWorker/entry.sh @@ -13,8 +13,8 @@ wait $! ret="$?" # Add log that process has crashed -if [ "$ret" = 139 ]; then - echo "$@" "CRASHED" +if [ "$ret" != 0 ]; then + echo "$@" "CRASHED with status code $ret" >&2 fi # Forward the status code