[ruby-cvs:53364] akr:r46218 (trunk): * ext/socket/unixsocket.c (rsock_init_unixsock): Open a socket

akr at ruby-lang.org akr at ruby-lang.org
Thu May 29 00:42:11 JST 2014


akr	2014-05-29 00:42:09 +0900 (Thu, 29 May 2014)

  New Revision: 46218

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

  Log:
    * ext/socket/unixsocket.c (rsock_init_unixsock): Open a socket
      after path length check.
      This fixes a fd leak by TestSocket_UNIXSocket#test_too_long_path.

  Modified files:
    trunk/ChangeLog
    trunk/ext/socket/unixsocket.c
    trunk/test/socket/test_socket.rb
    trunk/test/socket/test_tcp.rb
    trunk/test/socket/test_unix.rb


More information about the ruby-cvs mailing list