Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread Correctly set pt_lid in the child, after a fork
details: https://anonhg.NetBSD.org/src/rev/9ce06a0c63e4
branches: trunk
changeset: 753367:9ce06a0c63e4
user: explorer <explorer%NetBSD.org@localhost>
date: Wed Mar 24 07:27:22 2010 +0000
description:
Correctly set pt_lid in the child, after a fork
diffstat:
lib/libpthread/pthread.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 424ac10f92c3 -r 9ce06a0c63e4 lib/libpthread/pthread.c
--- a/lib/libpthread/pthread.c Wed Mar 24 01:45:37 2010 +0000
+++ b/lib/libpthread/pthread.c Wed Mar 24 07:27:22 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.c,v 1.113 2009/10/03 23:49:50 christos Exp $ */
+/* $NetBSD: pthread.c,v 1.114 2010/03/24 07:27:22 explorer Exp $ */
/*-
* Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread.c,v 1.113 2009/10/03 23:49:50 christos Exp $");
+__RCSID("$NetBSD: pthread.c,v 1.114 2010/03/24 07:27:22 explorer Exp $");
#define __EXPOSE_STACK 1
@@ -256,6 +256,8 @@
* 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;
}
Home |
Main Index |
Thread Index |
Old Index