From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 16 12:44:51 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 505B516A41B for ; Sun, 16 Dec 2007 12:44:51 +0000 (UTC) (envelope-from xistence@0x58.com) Received: from mailexchange.osnn.net (1e.66.5646.static.theplanet.com [70.86.102.30]) by mx1.freebsd.org (Postfix) with SMTP id F0F0F13C474 for ; Sun, 16 Dec 2007 12:44:50 +0000 (UTC) (envelope-from xistence@0x58.com) Received: (qmail 56371 invoked by uid 0); 16 Dec 2007 12:14:23 -0000 Received: from unknown (HELO wideload.network.lan) (xistence@0x58.com@68.228.228.123) by mailexchange.osnn.net with SMTP; 16 Dec 2007 12:14:23 -0000 Cc: FreeBSD Hackers Message-Id: <0D37AA11-3C3F-45AD-90EE-F0E2BB0CF7FD@0x58.com> From: Bert JW Regeer In-Reply-To: Content-Type: multipart/signed; boundary=Apple-Mail-2-456967346; micalg=sha1; protocol="application/pkcs7-signature" Mime-Version: 1.0 (Apple Message framework v915) Date: Sun, 16 Dec 2007 05:18:19 -0700 References: <4763A398.2040109@mansionfamily.plus.com> X-Mailer: Apple Mail (2.915) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: kqueue and libev X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2007 12:44:51 -0000 --Apple-Mail-2-456967346 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Dec 15, 2007, at 08:47 , Kip Macy wrote: > On 12/15/07, James Mansion wrote: >> Any idea what the author of libev is on about here (from >> http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod): >> >> unsigned int ev_recommended_backends () >> >> Return the set of all backends compiled into this binary of libev >> and also recommended for this platform. This set is often smaller >> than the one returned by |ev_supported_backends|, as for example >> kqueue is broken on most BSDs and will not be autodetected unless >> you explicitly request it (assuming you know what you are doing). >> >> and >> >> |EVBACKEND_KQUEUE| (value 8, most BSD clones) >> >> Kqueue deserves special mention, as at the time of this writing, >> it >> was broken on all BSDs except NetBSD (usually it doesn't work with >> anything but sockets and pipes, except on Darwin, where of course >> its completely useless). For this reason its not being >> "autodetected" unless you explicitly specify it explicitly in the >> flags (i.e. using |EVBACKEND_KQUEUE|). >> >> It looks like a decent library, but these comments seem unfortunate. >> Does anyone know what the author is concerned about? >> >> James >> > Actually, until recently it was broken on pipes. We've never received > any PRs to that effect so there is no way of knowing. You'll have > better luck asking the author himself. > > -Kip How recently? I have been using kqueue with pipes in several programs for the last year or so. Bert JW Regeer --Apple-Mail-2-456967346--