]> granicus.if.org Git - strace/commit
tests: robustify unix-yy.test
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 5 Mar 2015 17:30:23 +0000 (17:30 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 5 Mar 2015 17:44:32 +0000 (17:44 +0000)
commitda66e25779635e59b42a4477ef1e8b6b6917dac6
treeb1d7d7768bf71444d0bb4c77d69e35e1cf9b6ad4
parent59f63d3106cfd49b507de31497c76c9b8ba85eb8
tests: robustify unix-yy.test

Implement additional synchronization between parent and child processes
to guarantee that the child starts closing connected socket only after
exiting of the parent's accept() syscall.
This guarantee seems to be necessary to reliably receive UNIX_DIAG_PEER
messages from NETLINK_SOCK_DIAG interface.

* tests/net-accept-connect.c: Implement additional synchronization
between parent and child processes.
* tests/unix-yy-connect.awk: Update.
tests/net-accept-connect.c
tests/unix-yy-connect.awk