From owner-freebsd-hackers Thu Apr 30 21:44:43 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA26446 for freebsd-hackers-outgoing; Thu, 30 Apr 1998 21:44:43 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from bleep.ishiboo.com (user28420@bleep.ishiboo.com [199.79.133.2]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id VAA26436 for ; Thu, 30 Apr 1998 21:44:38 -0700 (PDT) (envelope-from black@bleep.ishiboo.com) From: black@bleep.ishiboo.com Received: (qmail 8227 invoked by uid 1018); 1 May 1998 05:45:45 -0000 Message-ID: <19980501054545.6097.qmail@bleep.ishiboo.com> Subject: Re: recvmsg/sendmsg + pthreads? In-Reply-To: <199805010221.MAA27044@cimlogic.com.au> from John Birrell at "May 1, 98 12:21:32 pm" To: jb@cimlogic.com.au (John Birrell) Date: Fri, 1 May 1998 00:45:45 -0500 (EST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG i'm not getting an error, it just returns immediately even though there is no data to be read on the socket. (no, i'm not compiling with -D_THREAD_SAFE but thanks for the tip). > black@bleep.ishiboo.com wrote: > > are the recvmsg and sendmsg calls threadsafe in 2.2.6-STABLE? i am having > > problems getting things to work when doing recvmsg() on a socket if > > multiple threads are involved. > > Are you compiling with -D_THREAD_SAFE so that you get the thread-specific > errno? > > -- > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message