summaryrefslogtreecommitdiff
path: root/vio/viosocket.c
diff options
context:
space:
mode:
authorunknown <SergeyV@selena.>2005-09-07 14:59:41 +0400
committerunknown <SergeyV@selena.>2005-09-07 14:59:41 +0400
commitc9b589defa19cc955537213337d941c082607813 (patch)
tree6d7d7c48dfa20e970a334d389572e8177394c300 /vio/viosocket.c
parent44e289b45144ffd0afbe50b6ac36b5fb23d68d32 (diff)
parent1f776a5a45f84dfb4c4e28ef618d7edf1ab048de (diff)
downloadmariadb-git-c9b589defa19cc955537213337d941c082607813.tar.gz
Merge selena.:H:/MYSQL/src/#05588-mysql-4.0
into selena.:H:/MYSQL/src/#05588-mysql-4.1 BitKeeper/deleted/.del-lib_vio.c~d779731a1e391220: Auto merged BitKeeper/deleted/.del-mini_client.cc~8677895ec8169183: Auto merged include/violite.h: Auto merged sql/net_serv.cc: Auto merged vio/vio.c: Auto merged vio/viosocket.c: Auto merged include/my_global.h: SCCS merged
Diffstat (limited to 'vio/viosocket.c')
-rw-r--r--vio/viosocket.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index c7561890ead..ca384a57967 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -196,6 +196,15 @@ vio_should_retry(Vio * vio __attribute__((unused)))
}
+my_bool
+vio_was_interrupted(Vio * vio __attribute__((unused)))
+{
+ int en = socket_errno;
+ return (en == SOCKET_EAGAIN || en == SOCKET_EINTR ||
+ en == SOCKET_EWOULDBLOCK || en == SOCKET_ETIMEDOUT);
+}
+
+
int vio_close(Vio * vio)
{
int r=0;