diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2016-01-05 22:48:50 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2016-01-07 17:27:08 +0100 |
commit | 3730d8a225fe33a0157e0aaa85121ef7cecf288d (patch) | |
tree | 775953958607557cd63cf30a032a2e06d1750c17 /include | |
parent | 1236333333c351b93593b12c0e20b06313e4ac29 (diff) | |
download | mariadb-git-3730d8a225fe33a0157e0aaa85121ef7cecf288d.tar.gz |
MDEV-9366 : do_shutdown_server fails to detect server shutdown on Windows.
Fix test whether process is alive in mysqltest.
Also fix SHUT_RD definition on Windows to be SD_RECEIVE.
SD_BOTH was used instead prior to this patch, and this would
occasionally make mysql_shutdown() fail - when the socket for the current connection
is not able send the COM_SHUTDOWN response anymore.
Diffstat (limited to 'include')
-rw-r--r-- | include/violite.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/violite.h b/include/violite.h index d5ce66c3061..a7165ca91a9 100644 --- a/include/violite.h +++ b/include/violite.h @@ -208,7 +208,7 @@ void vio_end(void); /* shutdown(2) flags */ #ifndef SHUT_RD -#define SHUT_RD SD_BOTH +#define SHUT_RD SD_RECEIVE #endif /* |