Skip to content

Commit

Permalink
fixup! cygthread: suspend thread before terminating.
Browse files Browse the repository at this point in the history
Suppress error output if ReadFile on child wait pipe returns
ERROR_OPERATION_ABORTED due to addition of CancelSynchronousIo call.
  • Loading branch information
jeremyd2019 committed Nov 13, 2024
1 parent e09c64e commit 63dd325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion winsup/cygwin/pinfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,8 @@ proc_waiter (void *arg)
if (!ReadFile (vchild.rd_proc_pipe, &buf, 1, &nb, NULL)
&& GetLastError () != ERROR_BROKEN_PIPE)
{
system_printf ("error on read of child wait pipe %p, %E", vchild.rd_proc_pipe);
if (GetLastError() != ERROR_OPERATION_ABORTED)
system_printf ("error on read of child wait pipe %p, %E", vchild.rd_proc_pipe);
break;
}

Expand Down

0 comments on commit 63dd325

Please sign in to comment.