summaryrefslogtreecommitdiff
path: root/vio/viosocket.c
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-07-12 07:38:46 +0300
committerunknown <monty@mysql.com>2004-07-12 07:38:46 +0300
commit33a15f3df4985d6c64be2d5d20ade56918d02a74 (patch)
tree9483a2a2d886576bfbbbd5379a6f47059b5a8b0e /vio/viosocket.c
parent25e2b7774ecfc9e92735cedb8c502ede46c9efb9 (diff)
downloadmariadb-git-33a15f3df4985d6c64be2d5d20ade56918d02a74.tar.gz
Don't close already closed files in vio (not critical)
mysys/my_init.c: Extra debugging sql/mysqld.cc: Added comment sql/sql_parse.cc: Removed unneeded info vio/viosocket.c: Added assert. Don't close already closed files
Diffstat (limited to 'vio/viosocket.c')
-rw-r--r--vio/viosocket.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index 8dea06d4adf..48a9058480a 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -203,9 +203,11 @@ int vio_close(Vio * vio)
#endif
r=CloseHandle(vio->hPipe);
}
- else if (vio->type != VIO_CLOSED)
+ else
#endif /* __WIN__ */
+ if (vio->type != VIO_CLOSED)
{
+ DBUG_ASSERT(vio->sd >= 0);
if (shutdown(vio->sd,2))
r= -1;
if (closesocket(vio->sd))