ruby-changes:9954
From: usa <ko1@a...>
Date: Tue, 13 Jan 2009 21:46:02 +0900 (JST)
Subject: [ruby-changes:9954] Ruby:r21495 (trunk): * io.c (io_reopen, rb_io_init_copy): should register fptr to pipe_list
usa 2009-01-13 21:45:43 +0900 (Tue, 13 Jan 2009) New Revision: 21495 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21495 Log: * io.c (io_reopen, rb_io_init_copy): should register fptr to pipe_list when copying pipe fptr. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 21494) +++ ChangeLog (revision 21495) @@ -1,3 +1,8 @@ +Tue Jan 13 21:44:30 2009 NAKAMURA Usaku <usa@r...> + + * io.c (io_reopen, rb_io_init_copy): should register fptr to pipe_list + when copying pipe fptr. + Tue Jan 13 21:38:07 2009 Tanaka Akira <akr@f...> * ext/socket/socket.c (rb_getaddrinfo): use getaddrinfo with GVL if Index: io.c =================================================================== --- io.c (revision 21494) +++ io.c (revision 21495) @@ -5259,6 +5259,10 @@ if (orig->pathv) fptr->pathv = orig->pathv; else fptr->pathv = Qnil; fptr->finalize = orig->finalize; +#if defined (__CYGWIN__) || !defined(HAVE_FORK) + if (fptr->finalize == pipe_finalize) + pipe_add_fptr(fptr); +#endif fd = fptr->fd; fd2 = orig->fd; @@ -5410,6 +5414,10 @@ fptr->lineno = orig->lineno; if (!NIL_P(orig->pathv)) fptr->pathv = orig->pathv; fptr->finalize = orig->finalize; +#if defined (__CYGWIN__) || !defined(HAVE_FORK) + if (fptr->finalize == pipe_finalize) + pipe_add_fptr(fptr); +#endif fd = ruby_dup(orig->fd); fptr->fd = fd; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/