Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263795AbUFFQdV (ORCPT ); Sun, 6 Jun 2004 12:33:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263802AbUFFQdU (ORCPT ); Sun, 6 Jun 2004 12:33:20 -0400 Received: from sphinx.mythic-beasts.com ([212.69.37.6]:4244 "EHLO sphinx.mythic-beasts.com") by vger.kernel.org with ESMTP id S263795AbUFFQdT (ORCPT ); Sun, 6 Jun 2004 12:33:19 -0400 Date: Sun, 6 Jun 2004 17:33:06 +0100 (BST) From: chris@scary.beasts.org X-X-Sender: cevans@sphinx.mythic-beasts.com To: Linus Torvalds cc: Kalin KOZHUHAROV , Davide Libenzi , Robert Love , Chris Wedgwood , Arjan van de Ven , Russell Leighton , Kernel Mailing List Subject: Re: clone() <-> getpid() bug in 2.6? In-Reply-To: Message-ID: References: <40C1E6A9.3010307@elegant-software.com> <20040605205547.GD20716@devserv.devel.redhat.com> <20040605215346.GB29525@taniwha.stupidest.org> <1086475663.7940.50.camel@localhost> <40C2A6E4.7020103@ThinRope.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 882 Lines: 22 Hi Linus, On Sat, 5 Jun 2004, Linus Torvalds wrote: > But no, even despite the strange usage, this isn't a performance issue. > qmail will call "getpid()" a few tens of times per connection because of > the wonderful quality of randomness it provides, or something. The openssl library seems to have a strange love for getpid() too. At least, my old-ish version "openssl-0.9.6b-35.7" does. My strace logs show over 50 consecutive getpid() calls during the processing of the SSL_accept() routine. (I'm adding SSL support to vsftpd; SSL_accept() is called every client connect and also to accept passive data connections). Cheers Chris - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/