summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-09-20 07:14:18 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-09-20 07:14:18 +0000
commit70a444b0cc703a2fd3e05045cd1e36266221149e (patch)
tree32169a95b2aadc737d2a78b02bc0cb5fba56e856 /ext/socket/socket.c
parent656cbdf2b7a0b185fe1232cf7322f5b39f47c28a (diff)
19990920
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 93a8aac..4c0934a 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -115,7 +115,7 @@ sock_new(class, fd)
#endif
fp->f2 = rb_fdopen(fd, "w");
fp->mode = FMODE_READWRITE;
- rb_io_unbuffered(fp);
+ rb_io_synchronized(fp);
return (VALUE)sock;
}