diff options
author | SergeyV@selena. <> | 2005-09-07 14:59:41 +0400 |
---|---|---|
committer | SergeyV@selena. <> | 2005-09-07 14:59:41 +0400 |
commit | 784582b857a5538be9c780a0985ece10baa9825e (patch) | |
tree | 6d7d7c48dfa20e970a334d389572e8177394c300 /vio/viosocket.c | |
parent | 2ff61bd6970818cbad3b07556087175443b3939a (diff) | |
parent | 72d3e0ca1b026efc968c1ce4ffa500d5473ec145 (diff) | |
download | mariadb-git-784582b857a5538be9c780a0985ece10baa9825e.tar.gz |
Merge selena.:H:/MYSQL/src/#05588-mysql-4.0
into selena.:H:/MYSQL/src/#05588-mysql-4.1
Diffstat (limited to 'vio/viosocket.c')
-rw-r--r-- | vio/viosocket.c | 9 |
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; |