| source `dirname $0`/util.sh |
| |
| SYNC_TOKEN=disabled |
| |
| record $TESTNAME & |
| SUB_ID=$! |
| |
| echo "Waiting for token '$SYNC_TOKEN' from tracee ..." |
| until grep -q $SYNC_TOKEN record.out; do |
| sleep 0 |
| if ! kill -0 "$SUB_ID" >/dev/null 2>&1; then failed "subshell died, no need to longer wait for '$SYNC_TOKEN'"; exit; fi |
| done |
| |
| echo " done. Delivering SIGUSR1 ..." |
| kill -USR1 $rrpid $(pidof $TESTNAME-$nonce) |
| |
| # Wait for 'record' to actually terminate. Otherwise we might start |
| # replaying before the trace file has been completely written. |
| wait |
| |
| echo "Replaying ..." |
| replay |
| check 'EXIT-SUCCESS' |