1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/option.c (inspect_linger): message refined.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-22 11:09:55 +00:00
parent 22cef963c3
commit 80d230c394
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sun Feb 22 20:09:29 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/option.c (inspect_linger): message refined.
Sun Feb 22 19:28:08 2009 Tanaka Akira <akr@fsij.org>
* ext/socket/init.c (s_recvfrom): use rb_io_wait_readable after

View file

@ -272,7 +272,7 @@ inspect_linger(int level, int optname, VALUE data, VALUE ret)
if (RSTRING_LEN(data) == sizeof(struct linger)) {
struct linger s;
memcpy((char*)&s, RSTRING_PTR(data), sizeof(s));
rb_str_catf(ret, " onoff:%d linger:%d", s.l_onoff, s.l_linger);
rb_str_catf(ret, " %s %dsec", s.l_onoff ? "on" : "off", s.l_linger);
return 1;
}
else {