From owner-freebsd-threads@FreeBSD.ORG Wed Jan 26 21:08:57 2005 Return-Path: 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 B767816A4CE for ; Wed, 26 Jan 2005 21:08:57 +0000 (GMT) Received: from bute.st-andrews.ac.uk (bute.st-and.ac.uk [138.251.12.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FEAF43D39 for ; Wed, 26 Jan 2005 21:08:56 +0000 (GMT) (envelope-from s_sourceforge@nedprod.com) Received: from kate (res04-ned6.res.st-and.ac.uk [138.251.234.67]) by bute.st-andrews.ac.uk (8.9.1a/8.9.1) with SMTP id VAA26836 for ; Wed, 26 Jan 2005 21:05:57 GMT From: "Niall Douglas" To: freebsd-threads@freebsd.org Date: Wed, 26 Jan 2005 21:08:42 -0000 MIME-Version: 1.0 Message-ID: <41F806DA.5314.3ABF7764@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Content-Transfer-Encoding: 7BIT Subject: Is select() a thread cancellation point? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 21:08:57 -0000 According to: http://lists.freebsd.org/pipermail/freebsd-threads/2004- October/002572.html ... it is. But v5.3 FreeBSD doesn't cancel during select(), nor during recv(). OTOH I have other documentation which suggests that neither select() nor recv() are cancellation points. Oh and on Linux, both are cancellation points. In my mind it's probably more useful if they are cancellation points as you can always disable cancellation around them if necessary whereas the opposite is not true. Cheers, Niall