]> git.ipfire.org Git - thirdparty/gnutls.git/commit
tests: close unused peer socket in the tests using socketpair
authorDaiki Ueno <ueno@gnu.org>
Sun, 5 Mar 2023 06:20:35 +0000 (15:20 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 9 Mar 2023 12:17:06 +0000 (21:17 +0900)
commitdd79ac9bcf90012e090726adf7c1940bcce8333f
treeeb29c57c10954001f25a670a106c5222f2fc8e69
parent9d00094935c797e4fae0a8b98fc18b114eec5e27
tests: close unused peer socket in the tests using socketpair

Otherwise, the subsequent call to wait will block, when the child
process exits abnormally.  Checked with the following script:

  for i in $(git grep -l socketpair); do
          if ! grep -q 'close.*\[' $i; then echo $i; fi
  done

Signed-off-by: Daiki Ueno <ueno@gnu.org>
tests/anonself.c
tests/cipher-alignment.c
tests/client-sign-md5-rep.c
tests/dhepskself.c
tests/dhex509self.c
tests/duplicate-extensions.c
tests/naked-alerts.c
tests/server-sign-md5-rep.c
tests/srp.c
tests/tls-session-supplemental.c