diff options
author | Elliott Hughes <enh@google.com> | 2013-02-14 18:59:37 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-02-15 12:08:59 -0800 |
commit | 40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e (patch) | |
tree | 19eef7fcbba616a52bd37f4c83ece3e918b25445 /libthread_db | |
parent | 3e3b239d2be0c5a92e91385f4f10b8f7da8d2837 (diff) | |
download | bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.zip bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.tar.gz bionic-40eabe24e4e3ae8ebe437f1f4e43cf39cbba2e9e.tar.bz2 |
Fix the pthread_setname_np test.
Fix the pthread_setname_np test to take into account that emulator kernels are
so old that they don't support setting the name of other threads.
The CLONE_DETACHED thread is obsolete since 2.5 kernels.
Rename kernel_id to tid.
Fix the signature of __pthread_clone.
Clean up the clone and pthread_setname_np implementations slightly.
Change-Id: I16c2ff8845b67530544bbda9aa6618058603066d
Diffstat (limited to 'libthread_db')
-rw-r--r-- | libthread_db/libthread_db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libthread_db/libthread_db.c b/libthread_db/libthread_db.c index e749377..bd78ae6 100644 --- a/libthread_db/libthread_db.c +++ b/libthread_db/libthread_db.c @@ -161,7 +161,7 @@ td_err_e td_thr_get_info(td_thrhandle_t const * handle, td_thrinfo_t * info) { info->ti_tid = handle->tid; - info->ti_lid = handle->tid; // Our pthreads uses kernel ids for tids + info->ti_lid = handle->tid; info->ti_state = TD_THR_SLEEP; /* XXX this needs to be read from /proc/<pid>/task/<tid>. This is only used to see if the thread is a zombie or not */ return TD_OK; |