Date: Thu, 8 Jul 2004 06:27:48 -0400 (EDT) From: Daniel Eischen <eischen@vigrid.com> To: Petr Holub <hopet@ics.muni.cz> Cc: threads@freebsd.org Subject: RE: sem_wait as cancellation point Message-ID: <Pine.GSO.4.10.10407080627000.29752-100000@pcnet5.pcnet.com> In-Reply-To: <Pine.GSO.4.10.10407080624170.29752-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 Jul 2004, Daniel Eischen wrote: > On Thu, 8 Jul 2004, Petr Holub wrote: > > > > sem_wait() is a cancellation point in libpthread. > > > > No, it is not - at least according to my experience of 5.2.1-RELEASE-p9. > > When I use following snipplet of code, it keeps hanging in the pthread_join: > > You're using libc_r. libpthread is in -current. -bash-2.05b$ uname -a FreeBSD sirius 5.2-CURRENT FreeBSD 5.2-CURRENT #17: Sat Jul 3 20:04:16 EDT 2004 root@sirius:/usr/obj/usr/src/sys/sirius i386 -bash-2.05b$ ./sem_wait Creating thread. Sleeping for 5 secs. Initing semaphore. Posting semaphore. Waiting for semaphore (this should pass). Waiting for semaphore (this should hang). Trying to cancel the thread. Trying to join the thread. Finished. -- Dan Eischen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10407080627000.29752-100000>