server: Set the event in IOCTL_AFD_EVENT_SELECT if the socket becomes signaled.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52335 Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
131f913527
commit
9632048c68
|
@ -5159,9 +5159,8 @@ static void test_accept_events(struct event_test_ctx *ctx)
|
|||
|
||||
select_events(ctx, listener, FD_CONNECT | FD_READ | FD_OOB | FD_ACCEPT);
|
||||
ret = WaitForSingleObject(ctx->event, 0);
|
||||
todo_wine ok(!ret, "wait timed out\n");
|
||||
if (!ret)
|
||||
check_events(ctx, FD_ACCEPT, 0, 0);
|
||||
ok(!ret, "wait timed out\n");
|
||||
check_events(ctx, FD_ACCEPT, 0, 0);
|
||||
|
||||
server = accept(listener, NULL, NULL);
|
||||
ok(server != -1, "failed to accept, error %u\n", WSAGetLastError());
|
||||
|
|
|
@ -2543,6 +2543,11 @@ static void sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
|
|||
sock->nonblocking = 1;
|
||||
|
||||
sock_reselect( sock );
|
||||
/* Explicitly wake the socket up if the mask causes it to become
|
||||
* signaled. Note that reselecting isn't enough, since we might already
|
||||
* have had events recorded in sock->reported_events and we don't want
|
||||
* to select for them again. */
|
||||
sock_wake_up( sock );
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue