diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-04-17 09:37:41 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-04-17 09:37:41 +0000 |
| commit | 334fa8f215d7d7c06c9069b490128ada85d493e8 (patch) | |
| tree | ec7b2da4d2e99a8813a3de82f30093dc80e16951 /lib/libpthread | |
| parent | 4fe6f197e00987cecfed3abbf6fb808ce5b8ae1d (diff) | |
Notes
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/thread/thr_kern.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index 9356c4c63e7c..3b624223a7f6 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uthread_kern.c,v 1.7 1998/03/09 04:46:26 jb Exp $ + * $Id: uthread_kern.c,v 1.8 1998/04/11 07:47:22 jb Exp $ * */ #include <errno.h> @@ -892,6 +892,7 @@ _thread_signal(pthread_t pthread, int sig) case PS_FDR_WAIT: case PS_FDW_WAIT: case PS_SLEEP_WAIT: + case PS_SIGWAIT: /* Return the 'interrupted' error: */ _thread_seterrno(pthread, EINTR); pthread->interrupted = 1; @@ -902,18 +903,6 @@ _thread_signal(pthread_t pthread, int sig) /* Return the signal number: */ pthread->signo = sig; break; - - /* Waiting on a signal: */ - case PS_SIGWAIT: - /* Change the state of the thread to run: */ - PTHREAD_NEW_STATE(pthread,PS_RUNNING); - - /* Return the signal number: */ - pthread->signo = sig; - - /* Flag the signal as dealt with: */ - done = 1; - break; } /* |
