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

ruby-changes:21874

From: nagachika <ko1@a...>
Date: Thu, 1 Dec 2011 23:28:52 +0900 (JST)
Subject: [ruby-changes:21874] nagachika:r33923 (trunk): * thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) only if

nagachika	2011-12-01 23:28:42 +0900 (Thu, 01 Dec 2011)

  New Revision: 33923

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

  Log:
    * thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) only if
      PR_SET_NAME is available.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33922)
+++ ChangeLog	(revision 33923)
@@ -1,3 +1,8 @@
+Thu Dec  1 23:21:58 2011  CHIKANAGA Tomoyuki  <nagachika00@g...>
+
+	* thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) only if
+	  PR_SET_NAME is available.
+
 Thu Dec  1 22:31:16 2011  Tanaka Akira  <akr@f...>
 
 	* io.c (linux_get_maxfd): change local variable name.
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 33922)
+++ thread_pthread.c	(revision 33923)
@@ -1130,7 +1130,7 @@
 
     if (TT_DEBUG) WRITE_CONST(2, "start timer thread\n");
 
-#ifdef __linux__
+#if defined(__linux__) && defined(PR_SET_NAME)
     prctl(PR_SET_NAME, "ruby-timer-thr");
 #endif
 

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

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