You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The number of milliseconds that the caller is willing to wait for a completion packet to appear at the completion port. If a completion packet does not appear within the specified time, the function times out, returns FALSE, and sets *lpOverlapped to NULL.
A timeout will result in FALSE, which results in an Err.
This is contrary to normal behavior for try_wait. I would expect the try_wait to not fail on GetQueuedCompletionStatus timeout, but instead act like underlying impl of try_wait and return an Ok(None), or handle non-timeout errors specifically.
The text was updated successfully, but these errors were encountered:
bmc-msft
changed the title
stdlib::child::Windows::ChildImp::try_wait shouldn't fail on timeout of GetQueuedCompletionStatusstdlib::child::Windows::ChildImp::try_wait shouldn't fail on timeout of GetQueuedCompletionStatus
Aug 24, 2021
Per the documentation on GetQueuedCompletionStatus:
As such, calling
wait_imp(0)
as shown here:command-group/src/stdlib/child/windows.rs
Line 91 in b704729
Which calls
GetQueuedCompletionStatus
here:command-group/src/stdlib/child/windows.rs
Lines 72 to 80 in b704729
A timeout will result in FALSE, which results in an Err.
This is contrary to normal behavior for try_wait. I would expect the
try_wait
to not fail onGetQueuedCompletionStatus
timeout, but instead act like underlying impl oftry_wait
and return an Ok(None), or handle non-timeout errors specifically.The text was updated successfully, but these errors were encountered: