From owner-cvs-all Wed Mar 15 5:59:35 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 90F1337B5C1; Wed, 15 Mar 2000 05:59:30 -0800 (PST) (envelope-from deischen@FreeBSD.org) Received: (from deischen@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA28345; Wed, 15 Mar 2000 05:59:30 -0800 (PST) (envelope-from deischen@FreeBSD.org) Message-Id: <200003151359.FAA28345@freefall.freebsd.org> From: Daniel Eischen Date: Wed, 15 Mar 2000 05:59:30 -0800 (PST) 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 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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