]> granicus.if.org Git - strace/commit
tests/attach-f-p.c: sleep a bit more to let the tracer catch up
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 11:10:22 +0000 (11:10 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 12:14:33 +0000 (12:14 +0000)
commit9b49af1871174394b2f77fb53c5e92b38b5fce18
treed15df2bdf24f8289d46a258832b07483dcd8af1b
parent475d2b5da6dda57abdf10e26d1f3699e6f7c9619
tests/attach-f-p.c: sleep a bit more to let the tracer catch up

On noticeably lagging systems, the parent process may invoke its chdir
call before the tracer gets notified about completion of its last child
process.  Add extra sleep in the parent process to win the race.

* tests/attach-f-p.c (main): Change timerid into a static array.
Arm a timer in the parent process and wait for it.
tests/attach-f-p.c