<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/86583>86583</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [llvm-exegesis] Not closing file descriptors after use
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            boomanaiden154
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          boomanaiden154
      </td>
    </tr>
</table>

<pre>
    The subprocess executor is currently not closing file descriptors after they have been used, simply leaving them open. This can cause issues in downstream projects that execute/benchmark many blocks before exiting:
```
Failed to annotate block: INTERNAL: Failed to create a pipe for interprocess communication between llvm-exegesis and the benchmarking subprocess: Too many open files
```

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEks9q3DAQxp9GvgxZbNnO7h582DY1FEoOZV9gJI9tNbJkNOMk-_ZFu9uGQKFgsITmzze_-ZDZTYGoU-0XpbWJccGAbqBQtY3SWrVPBW4yx9R9fitMHC7deSbgzawpWmIGeie7SUzgGOyWEgXxFwhRwPrILkwwOk8wENvkVomJAUehBDLTBWZ8JTBEATamQemvwG5Z_QU84WtOlpkWiCuFHZzn3AIDWNyYwDFvxOACDPEtsCTCBdYUf5EVBplR7tpI6d5QsPOC6QUWDBcwPtoXBkNjTAT07sSFSdUnVT6p8qQey_t3vfboPA0gETCEKCh0y1f1Cb4_n7_9fD79yOePOJsoRyGsbiUYM5wglP4gs3FZtuAsiosBDMlbBuD96_JA7zQROwYMQ54d_grPMD6w537nGG_TZDxXyvxP_cXQ1cOxPmJBXbWvqqasDvpQzJ094t42h6bdY12V-xptbUqD5rCv7LEuTeE6XeqmrHWrK1039W6khrBpTGmboRzHvWpKWtD5XRa_i2kqrlvpDo_toS48GvJ8t1mgt9vK7g5L3XVgs02smtI7Fv6oIk781Z-foKj2CZ7_b6yNqdiS72aRNYNSule6n5zMm9nZuCjd57L338PdMkr3N0cp3V_l_w4AAP__PL8Qpg">