зеркало из https://github.com/github/ruby.git
* thread_pthread.c (thread_timer): call prctl(PR_SET_NAME) only if
PR_SET_NAME is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
eecacaa024
Коммит
72af26207b
|
@ -1,3 +1,8 @@
|
|||
Thu Dec 1 23:21:58 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* 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@fsij.org>
|
||||
|
||||
* io.c (linux_get_maxfd): change local variable name.
|
||||
|
|
|
@ -1130,7 +1130,7 @@ thread_timer(void *p)
|
|||
|
||||
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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче