diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2020-08-03 13:23:38 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2020-08-03 13:23:38 +0200 |
commit | ccb9f673b48ffa17103e628f34804ee1f2748b37 (patch) | |
tree | e45772806c6ffe0d7a915c09d9a31c9d7777ec8f /vio/vio.c | |
parent | 4d41f316c3c1c05fdd35cbdc1b626d596b89af40 (diff) | |
download | mariadb-git-ccb9f673b48ffa17103e628f34804ee1f2748b37.tar.gz |
MDEV-23348 vio_shutdown does not prevent later ReadFile on named pipe
Introduce st_vio::shutdown_flag to be checked prior to Read/WriteFile
and during wait for async.io to finish.
Diffstat (limited to 'vio/vio.c')
-rw-r--r-- | vio/vio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vio/vio.c b/vio/vio.c index 52a5387a852..694d2f7b7ff 100644 --- a/vio/vio.c +++ b/vio/vio.c @@ -68,6 +68,7 @@ int vio_shared_memory_shutdown(Vio *vio, int how) int vio_pipe_shutdown(Vio *vio, int how) { + vio->shutdown_flag= how; return CancelIoEx(vio->hPipe, NULL); } #endif |