WaitForTaskCompletion instead of "sleep 5".
This commit is contained in:
parent
6852e4ece7
commit
897dcfdecb
4
osync.sh
4
osync.sh
|
@ -1227,8 +1227,8 @@ $SSH_CMD error_alert=0 sync_on_changes=$sync_on_changes silent=$silent DEBUG=$DE
|
|||
IFS=$OLD_IFS
|
||||
ENDSSH
|
||||
|
||||
## Need to add a trivial sleep time to give ssh time to log to local file
|
||||
sleep 5
|
||||
child_pid=$!
|
||||
WaitForTaskCompletion $child_pid $SOFT_MAX_EXEC_TIME $HARD_MAX_EXEC_TIME
|
||||
|
||||
## Copy back the deleted failed file list
|
||||
ESC_SOURCE_FILE="$(EscapeSpaces "$SLAVE_STATE_DIR/$4")"
|
||||
|
|
Loading…
Reference in New Issue