WaitForTaskCompletion instead of "sleep 5".

This commit is contained in:
onovy 2015-03-30 20:48:49 +02:00
parent 6852e4ece7
commit 897dcfdecb
1 changed files with 2 additions and 2 deletions

View File

@ -1227,8 +1227,8 @@ $SSH_CMD error_alert=0 sync_on_changes=$sync_on_changes silent=$silent DEBUG=$DE
IFS=$OLD_IFS IFS=$OLD_IFS
ENDSSH ENDSSH
## Need to add a trivial sleep time to give ssh time to log to local file child_pid=$!
sleep 5 WaitForTaskCompletion $child_pid $SOFT_MAX_EXEC_TIME $HARD_MAX_EXEC_TIME
## Copy back the deleted failed file list ## Copy back the deleted failed file list
ESC_SOURCE_FILE="$(EscapeSpaces "$SLAVE_STATE_DIR/$4")" ESC_SOURCE_FILE="$(EscapeSpaces "$SLAVE_STATE_DIR/$4")"