diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 93a8aacce3..4c0934a87b 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; } |