server: Mark the async as pending in IOCTL_AFD_BIND.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-09-02 19:08:47 -05:00 committed by Alexandre Julliard
parent dd58bf9ce2
commit be3ff3d658
1 changed files with 2 additions and 0 deletions

View File

@ -2527,6 +2527,8 @@ static int sock_ioctl( struct fd *fd, ioctl_code_t code, struct async *async )
#endif
}
set_async_pending( async, 0 );
if (bind( unix_fd, &bind_addr.addr, unix_len ) < 0)
{
if (errno == EADDRINUSE)