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

ruby-changes:23976

From: naruse <ko1@a...>
Date: Mon, 11 Jun 2012 06:22:01 +0900 (JST)
Subject: [ruby-changes:23976] naruse:r36027 (trunk): * thread_pthread.c (rb_thread_create_timer_thread): assign return

naruse	2012-06-11 06:21:51 +0900 (Mon, 11 Jun 2012)

  New Revision: 36027

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

  Log:
    * thread_pthread.c (rb_thread_create_timer_thread): assign return
      value to the variable err.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36026)
+++ ChangeLog	(revision 36027)
@@ -1,3 +1,8 @@
+Mon Jun 11 06:20:50 2012  NARUSE, Yui  <naruse@r...>
+
+	* thread_pthread.c (rb_thread_create_timer_thread): assign return
+	  value to the variable err.
+
 Mon Jun 11 06:17:06 2012  NARUSE, Yui  <naruse@r...>
 
 	* thread_pthread.c (native_cond_initialize): fix typo in r36022.
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 36026)
+++ thread_pthread.c	(revision 36027)
@@ -1274,7 +1274,8 @@
 #ifdef HAVE_PTHREAD_ATTR_INIT
 	pthread_attr_t attr;
 
-	if (pthread_attr_init(&attr)) {
+	err = pthread_attr_init(&attr);
+	if (err != 0) {
 	    fprintf(stderr, "[FATAL] Failed to initialize pthread attr(errno: %d)\n", err);
 	    exit(EXIT_FAILURE);
         }

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

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