summaryrefslogtreecommitdiff
path: root/vio/vio.c
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-10-13 19:24:01 +0300
committerunknown <monty@mysql.com>2005-10-13 19:24:01 +0300
commitc8067ec8489dfc1ee96ba89100a9ef067578ffca (patch)
treee80b70fc5dabf499bc561a125c52bda1c74593eb /vio/vio.c
parent0e9f9498eadc21f3988a21a86ae310683da501c6 (diff)
downloadmariadb-git-c8067ec8489dfc1ee96ba89100a9ef067578ffca.tar.gz
Fixes during review of new code
sql/slave.cc: Moved mutex_unlock to handle 'err' case properly vio/vio.c: Made code clearer (fcntl_mode is always 0 here)
Diffstat (limited to 'vio/vio.c')
-rw-r--r--vio/vio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vio/vio.c b/vio/vio.c
index f60a53d2f04..427c52e29d3 100644
--- a/vio/vio.c
+++ b/vio/vio.c
@@ -146,7 +146,7 @@ Vio *vio_new(my_socket sd, enum enum_vio_type type, my_bool localhost)
reports that the socket is set for non-blocking when it really will
block.
*/
- fcntl(sd, F_SETFL, vio->fcntl_mode);
+ fcntl(sd, F_SETFL, 0);
vio->fcntl_mode= fcntl(sd, F_GETFL);
#elif defined(HAVE_SYS_IOCTL_H) /* hpux */
/* Non blocking sockets doesn't work good on HPUX 11.0 */