From be3ff3d6588311132f4fe0121cd0a6b49ec249f9 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Thu, 2 Sep 2021 19:08:47 -0500 Subject: [PATCH] server: Mark the async as pending in IOCTL_AFD_BIND. Signed-off-by: Zebediah Figura Signed-off-by: Alexandre Julliard --- server/sock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/sock.c b/server/sock.c index 1e31b806986..e06f914686e 100644 --- a/server/sock.c +++ b/server/sock.c @@ -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)