Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933290AbXKPTDh (ORCPT ); Fri, 16 Nov 2007 14:03:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752411AbXKPTDa (ORCPT ); Fri, 16 Nov 2007 14:03:30 -0500 Received: from mx1.redhat.com ([66.187.233.31]:58051 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752002AbXKPTDa (ORCPT ); Fri, 16 Nov 2007 14:03:30 -0500 Message-ID: <473DE8A6.2090100@redhat.com> Date: Fri, 16 Nov 2007 10:59:50 -0800 From: Ulrich Drepper User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: dean gaudet CC: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, mingo@elte.hu, tglx@linutronix.de, torvalds@linux-foundation.org Subject: Re: [PATCHv2 4/4] first use of sys_indirect system call References: <200711151822.lAFIMVnJ028596@devserv.devel.redhat.com> <473DDF1B.5030706@redhat.com> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1202 Lines: 32 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 dean gaudet wrote: > i'm not suggesting the library set the global flag. i'm suggesting that > me as an app writer will do so. > > it seems like both methods are useful. No, the global flag is hardly ever useful. You almost never know the details of all the libraries you link to well enough to determine that they don't need FD_CLOEXEC disabled. Even more problematic, you cannot know whether they will need it in future. For applications the solution is simple: wrap to appropriate calls. Apache has all these apr_ wrappers. But them to some good news after all. - -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFHPeim2ijCOnn/RHQRAu8xAJsF/0Ir1PWMbHkVRaI5vKOGFS4tMACfVEs9 pMYAiCAU1E2B+7QR0EP+/F8= =btt9 -----END PGP SIGNATURE----- - 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/