1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
nagachika 2011-12-01 14:28:42 +00:00
parent eecacaa024
commit 72af26207b
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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