From owner-freebsd-hackers Mon Dec 21 11:34:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA09841 for freebsd-hackers-outgoing; Mon, 21 Dec 1998 11:34:21 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA09800 for ; Mon, 21 Dec 1998 11:34:12 -0800 (PST) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id OAA01713; Mon, 21 Dec 1998 14:33:53 -0500 (EST) Date: Mon, 21 Dec 1998 14:33:53 -0500 (EST) From: Daniel Eischen Message-Id: <199812211933.OAA01713@pcnet1.pcnet.com> To: eischen@vigrid.com, lching@cisco.com Subject: Re: pthreads question Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Larry Ching wrote: > > A quick glance of the code shows that this is what happens only > > if the signal is blocked in the thread. If the signal is unblocked, > > then the thread should return with EINTR. Use sigprocmask(2) to > > unblock the signal in the thread that you want to interrupt. > > Thank you for your help above. The thread in question was making acall > to pthread_sigmask(SIG_UNBLOCK,...) to unblock the signal I > was using in pthread_kill(). I changed this call to > sigprocmask(SIG_UNBLOCK, ...) with no effect. The thread remains > blocked in the read() call and no EINTR error code is returned. > > Any suggestions as to where to look next??? You haven't set the action for the signal to SIG_IGN, have you? Got a simple prgram to demonstrate the problem? Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message