[ruby-cvs:51987] naruse:r44842 (ruby_2_1): merge revision(s) 44490, 44496: [Backport #9352]

naruse at ruby-lang.org naruse at ruby-lang.org
Wed Feb 5 22:08:32 JST 2014


naruse	2014-02-05 22:08:32 +0900 (Wed, 05 Feb 2014)

  New Revision: 44842

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

  Log:
    merge revision(s) 44490,44496: [Backport #9352]
    
    * 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
    
    * ext/socket/socket.c (rsock_syserr_fail_host_port): add errno
      argument version anduse rb_syserr_fail_str() instead of
      rb_sys_fail_str() with restoring errno.
    
    * ext/socket/socket.c (rsock_syserr_fail_path): ditto, and
      rb_syserr_fail().
    
    * ext/socket/socket.c (rsock_sys_fail_sockaddr): ditto, use
      rsock_syserr_fail_raddrinfo().
    
    * ext/socket/socket.c (rsock_sys_fail_raddrinfo): ditto.
    
    * ext/socket/socket.c (setup_domain_and_type): ditto.

  Modified directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/ChangeLog
    branches/ruby_2_1/ext/socket/rubysocket.h
    branches/ruby_2_1/ext/socket/socket.c
    branches/ruby_2_1/version.h


More information about the ruby-cvs mailing list