From 7ab0ceb36107f1b2314bd7598ab317eaf28330a8 Mon Sep 17 00:00:00 2001 From: davidxu Date: Fri, 30 May 2003 14:50:16 +0000 Subject: Save THR_FLAGS_IN_TDLIST in signal frame, otherwise if a thread received a signal will can not be removed from thread list after it exited. Reviewed by: deischen Approved by: re (jhb) --- lib/libpthread/thread/thr_sig.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libpthread/thread/thr_sig.c') diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c index 49a1c39..1250a95 100644 --- a/lib/libpthread/thread/thr_sig.c +++ b/lib/libpthread/thread/thr_sig.c @@ -893,7 +893,8 @@ static void thr_sigframe_save(struct pthread *thread, struct pthread_sigframe *psf) { /* This has to initialize all members of the sigframe. */ - psf->psf_flags = thread->flags & THR_FLAGS_PRIVATE; + psf->psf_flags = + thread->flags & (THR_FLAGS_PRIVATE|THR_FLAGS_IN_TDLIST); psf->psf_interrupted = thread->interrupted; psf->psf_signo = thread->signo; psf->psf_state = thread->state; -- cgit v1.1