<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    On 21/08/2023 17:28, Shruthi Shruthi1 wrote:<br>
    <blockquote type="cite" cite="mid:SJ0PR15MB4663DE072EA4731968DC979ECC1EA@SJ0PR15MB4663.namprd15.prod.outlook.com">
      
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof
        ContentPasted0"><br>
        <div class="ContentPasted0">The preClose() method internally
          calls the dup2() system call. If there is a dup2() call on a
          file descriptor on a thread while another thread is blocked in
          a read/write operation on the same file descriptor, then the
          dup2() call is known to hang. Currently, preClose()
          experiences a hang because we call dup2() before killing the
          reader/writer thread(s).
        </div>
        <br>
      </div>
    </blockquote>
    The JDK has a lot of tests for async close so if dup2 is hanging
    then I would expect at least some test failure. Which operating
    system (and version) is still happening on? Do you know SO_LINGER
    has been enabled?<br>
    <br>
    -Alan<br>
  </body>
</html>