Unexpanded and removed work comments

This commit is contained in:
deajan 2018-07-02 10:40:10 +02:00
parent c04e0fa21a
commit 9cac01d9fd
1 changed files with 56 additions and 56 deletions

View File

@ -1022,11 +1022,11 @@ function ExecTasks {
else
# pid is dead, get its exit code from wait command
wait $pid
retval=$? #TODO: do we use retval codes somehow ?? where
retval=$?
# Check for valid exit codes
if [ $(ArrayContains $retval "${validExitCodes[@]}") -eq 0 ]; then
if [ $noErrorLogsAtAll != true ]; then
Logger "${FUNCNAME[0]} called by [$id] finished monitoring pid [$pid] with exitcode [$retval]." "DEBUG" #TODO: set this to debug in order to stop complaints
Logger "${FUNCNAME[0]} called by [$id] finished monitoring pid [$pid] with exitcode [$retval]." "DEBUG"
if [ "$functionMode" == "ParallelExec" ]; then
Logger "Command was [${commandsArrayPid[$pid]}]." "ERROR"
fi