return value of syswrite may be less than length of given string.

This commit is contained in:
Tomoyuki Sahara
2014-04-17 15:45:31 +09:00
parent d5cf1de1ae
commit 810e37b1c3
+1 -1
View File
@@ -99,7 +99,7 @@ class IO
return str.size unless str.size > 0
len = syswrite(str)
if str.size == len
if len != -1
@pos += len
return len
end