From owner-freebsd-threads@FreeBSD.ORG Fri Mar 31 20:27:06 2006 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 555C116A422 for ; Fri, 31 Mar 2006 20:27:06 +0000 (UTC) (envelope-from s_sourceforge@nedprod.com) Received: from athos.st-andrews.ac.uk (athos.st-and.ac.uk [138.251.61.174]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F08143D45 for ; Fri, 31 Mar 2006 20:27:04 +0000 (GMT) (envelope-from s_sourceforge@nedprod.com) Received: from [169.254.226.23] (albatross-15 [138.251.96.15]) by athos.st-andrews.ac.uk (8.12.9/8.12.9) with SMTP id k2VKQfeo002752 for ; Fri, 31 Mar 2006 21:26:45 +0100 (BST) From: "Niall Douglas" To: freebsd-threads@freebsd.org Date: Fri, 31 Mar 2006 21:26:36 +0100 MIME-Version: 1.0 Message-ID: <442D9E8C.7186.4BAD0@s_sourceforge.nedprod.com> Priority: normal X-mailer: Pegasus Mail for Windows (4.31) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-StAndrews-MailScanner-Information: Please contact the ISP for more information X-StAndrews-MailScanner: No virus detected X-StAndrews-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.9, required 5, autolearn=not spam, BAYES_00 -4.90) X-StAndrews-MailScanner-From: s_sourceforge@nedprod.com Subject: recvfrom() not a thread cancellation point X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 20:27:06 -0000 Hi, How do I receive UDP packets using recvfrom() when it would seem that recvfrom() is not a thread cancellation point on FreeBSD 6.0? Is there an alternative method of receiving UDP packets which is thread cancellable? The best I can see is using plain read() but this of course won't return the sender of the UDP packet. Cheers, Niall