diff options
author | Jurijs Oniscuks <jurijs.oniscuks@sonymobile.com> | 2012-07-05 14:57:38 +0200 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-08-17 16:18:32 -0700 |
commit | 2932f048327965731c7e1ab9f2968a2ddb1854f5 (patch) | |
tree | d8b4473e1e707d67c487f89e49667a65505bd245 /libc/stdio/wbuf.c | |
parent | 1771a33d11a24f1c47b1ef75e3726c5d9e751f5b (diff) | |
download | android_bionic-2932f048327965731c7e1ab9f2968a2ddb1854f5.tar.gz android_bionic-2932f048327965731c7e1ab9f2968a2ddb1854f5.tar.bz2 android_bionic-2932f048327965731c7e1ab9f2968a2ddb1854f5.zip |
Fix race condition in pthread_create()
Save thread id to *thread_out before new
thread is allowed to run else there's a
risk that the thread has finished and
been deleted when *thread_out is assigned.
Change-Id: I6b84c61a8df06840877d4ab036f26feace3192d8
Diffstat (limited to 'libc/stdio/wbuf.c')
0 files changed, 0 insertions, 0 deletions