[PATCH] [binutils/testsuite] debuginfod.exp: Improve port selection

Aaron Merey amerey@redhat.com
Thu Feb 13 04:22:00 GMT 2020


The procedure to find an unused port is susceptible to a TOCTOU failure.
Change port finding in order to avoid this. Also use 'expect' to interact
with the server process since we now use the server's output to determine
whether a port is in use.

* binutils/testsuite/binutils-all/debuginfod.exp: Improve port selection.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-testsuite-debuginfod.exp-Improve-port-selec.diff
Type: text/x-patch
Size: 2603 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200213/d2f5b8e2/attachment.bin>


More information about the Binutils mailing list