Date: Wed, 15 Mar 2000 05:59:30 -0800 (PST) From: Daniel Eischen <deischen@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc_r/uthread pthread_private.h uthread_cancel.c uthread_cond.c uthread_create.c uthread_kern.c uthread_mutex.c uthread_resume_np.c uthread_sig.c uthread_suspend_np.c Message-ID: <200003151359.FAA28345@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
deischen 2000/03/15 05:59:30 PST
Modified files:
lib/libc_r/uthread pthread_private.h uthread_cancel.c
uthread_cond.c uthread_create.c
uthread_kern.c uthread_mutex.c
uthread_resume_np.c uthread_sig.c
uthread_suspend_np.c
Log:
Fix pthread_suspend_np/pthread_resume_np. For the record, suspending a
thread waiting on an event (I/O, condvar, etc) will, when resumed using
pthread_resume_np, return with EINTR. For example, suspending and resuming
a thread blocked on read() will not requeue the thread for the read, but
will return -1 with errno = EINTR. If the suspended thread is in a critical
region, the thread is suspended as soon as it leaves the critical region.
Fix a bogon in pthread_kill() where a signal was being delivered twice
to threads waiting in sigwait().
Reported by (suspend/resume bug): jdp
Reviewed by: jasone
Revision Changes Path
1.37 +4 -2 src/lib/libc_r/uthread/pthread_private.h
1.4 +10 -2 src/lib/libc_r/uthread/uthread_cancel.c
1.23 +11 -5 src/lib/libc_r/uthread/uthread_cond.c
1.25 +3 -4 src/lib/libc_r/uthread/uthread_create.c
1.29 +4 -3 src/lib/libc_r/uthread/uthread_kern.c
1.21 +4 -2 src/lib/libc_r/uthread/uthread_mutex.c
1.8 +8 -4 src/lib/libc_r/uthread/uthread_resume_np.c
1.26 +9 -7 src/lib/libc_r/uthread/uthread_sig.c
1.8 +81 -11 src/lib/libc_r/uthread/uthread_suspend_np.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003151359.FAA28345>
