Date: Mon, 21 Dec 1998 14:33:53 -0500 (EST) From: Daniel Eischen <eischen@vigrid.com> To: eischen@vigrid.com, lching@cisco.com Cc: hackers@FreeBSD.ORG Subject: Re: pthreads question Message-ID: <199812211933.OAA01713@pcnet1.pcnet.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812211933.OAA01713>