Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/lib/libpthread
> Modified Files:
> src/lib/libpthread: pthread.c
>
> Log Message:
> fix the pthread pt_lid in the fork callback function that runs in the child=
> instead of a function that may be going away. KNFify
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.114 -r1.115 src/lib/libpthread/pthread.c
The _lwp_ctl() call also need to be called with &self->pt_lwpctl
doesn't it?
enami.
@@ -235,11 +235,14 @@
static void
pthread__fork_callback(void)
{
+ struct __pthread_st *self;
/* lwpctl state is not copied across fork. */
if (_lwp_ctl(LWPCTL_FEATURE_CURCPU, &pthread__first->pt_lwpctl)) {
err(1, "_lwp_ctl");
}
+ self = pthread__self();
+ self->pt_lid = _lwp_self();
}
static void
Home |
Main Index |
Thread Index |
Old Index