Skip to content

Instantly share code, notes, and snippets.

@nurse
Created February 8, 2010 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nurse/298489 to your computer and use it in GitHub Desktop.
Save nurse/298489 to your computer and use it in GitHub Desktop.
Index: lib/libpthread/pthread.c
===================================================================
RCS file: /cvsroot/src/lib/libpthread/pthread.c,v
retrieving revision 1.106.2.2
diff -u -p -r1.106.2.2 pthread.c
--- lib/libpthread/pthread.c 11 Jan 2010 00:47:29 -0000 1.106.2.2
+++ lib/libpthread/pthread.c 8 Feb 2010 22:59:19 -0000
@@ -261,6 +261,8 @@ pthread__child_callback(void)
* much. Anything that permits some pthread_* calls to work is
* merely being polite.
*/
+ struct __pthread_st *self = pthread_self();
+ self->pt_lid = _lwp_self();
pthread__started = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment