[ruby-cvs:51635] charliesome:r44490 (trunk): * ext/socket/socket.c (rsock_sys_fail_host_port): save and restore errno

charliesome at ruby-lang.org charliesome at ruby-lang.org
Fri Jan 3 19:12:39 JST 2014


charliesome	2014-01-03 19:12:38 +0900 (Fri, 03 Jan 2014)

  New Revision: 44490

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44490

  Log:
    * ext/socket/socket.c (rsock_sys_fail_host_port): save and restore errno
      before calling rb_sys_fail_str to prevent [BUG] errno == 0.
      Patch by Eric Wong. [ruby-core:59498] [Bug #9352]
    
    * ext/socket/socket.c (rsock_sys_fail_path): ditto
    * ext/socket/socket.c (rsock_sys_fail_sockaddr): ditto
    * ext/socket/socket.c (rsock_sys_fail_raddrinfo): ditto
    * ext/socket/socket.c (rsock_sys_fail_raddrinfo_or_sockaddr): ditto

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/socket.c


More information about the ruby-cvs mailing list