Date: Sat, 21 Nov 1998 13:15:09 +1100 (EST) From: John Birrell <jb@cimlogic.com.au> To: chanders@timing.com (Craig Anderson) Cc: freebsd-hackers@FreeBSD.ORG, chanders@timing.com Subject: Re: reading socket in thread busy loops Message-ID: <199811210215.NAA27074@cimlogic.com.au> In-Reply-To: <199811210120.SAA05732@count.timing.com> from Craig Anderson at "Nov 20, 98 06:20:20 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Craig Anderson wrote: > My attempts to block on a socket read cause the > thread library to go into a spin loop. I believe > the socket fd is explicitly set to blocking mode, > but I'm not positive I'm setting things up properly. > Can anyone familiar with the threads library tell me > how to get blocking behavior? I'm running FreeBSD 2.2.6. Sounds like you are linking libc before libc_r. On 2.2.6, you should use the -nostdlib arg to gcc to prevent it linking against libc. -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 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?199811210215.NAA27074>