[前][次][番号順一覧][スレッド一覧]

ruby-changes:10998

From: nobu <ko1@a...>
Date: Tue, 24 Feb 2009 10:49:50 +0900 (JST)
Subject: [ruby-changes:10998] Ruby:r22587 (trunk): * process.c (rb_waitpid): last argument was missing.

nobu	2009-02-24 10:49:39 +0900 (Tue, 24 Feb 2009)

  New Revision: 22587

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

  Log:
    * process.c (rb_waitpid): last argument was missing.
    * process.c (waitall_each): fixed typo.  a patch from shinichiro.h
      <shinichiro.hamaji AT gmail.com> at [ruby-dev:38054].

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 22586)
+++ ChangeLog	(revision 22587)
@@ -1,3 +1,10 @@
+Tue Feb 24 10:49:37 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* process.c (rb_waitpid): last argument was missing.
+
+	* process.c (waitall_each): fixed typo.  a patch from shinichiro.h
+	  <shinichiro.hamaji AT gmail.com> at [ruby-dev:38054].
+
 Tue Feb 24 01:53:40 2009  Yukihiro Matsumoto  <matz@r...>
 
 	* numeric.c (flo_eq): remove unnecessary NaN check using isnan().
Index: process.c
===================================================================
--- process.c	(revision 22586)
+++ process.c	(revision 22587)
@@ -650,7 +650,7 @@
 
     for (;;) {
 	result = (rb_pid_t)rb_thread_blocking_region(rb_waitpid_blocking,
-						     st, RUBY_UBF_PROCESS);
+						     st, RUBY_UBF_PROCESS, 0);
 	if (result < 0) {
 	    if (errno == EINTR) {
 		rb_thread_schedule();
@@ -693,7 +693,7 @@
 waitall_each(rb_pid_t pid, int status, VALUE ary)
 {
     rb_last_status_set(status, pid);
-    rb_ary_push(ary, rb_assoc_new(PIDT2NUM(pid), rb_last_status_get());
+    rb_ary_push(ary, rb_assoc_new(PIDT2NUM(pid), rb_last_status_get()));
     return ST_DELETE;
 }
 #endif

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]