Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261374AbVAaVNK (ORCPT ); Mon, 31 Jan 2005 16:13:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261369AbVAaVNJ (ORCPT ); Mon, 31 Jan 2005 16:13:09 -0500 Received: from rproxy.gmail.com ([64.233.170.201]:13644 "EHLO rproxy.gmail.com") by vger.kernel.org with ESMTP id S261368AbVAaVIz (ORCPT ); Mon, 31 Jan 2005 16:08:55 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=hp2chCaHSHylmd+JGeaeq2xuEo0vRb8+zwHYNBP5tPC6uXq45Tf5xru9epd7QwEvFODMJ2FiDCzS/7LL2lKb4W1KTNK+A4AmmQjADjjcKENawIRY3Gy1QjnrXxCkuGr6TWTQeateA/1ehAytqUPyIZ77qAHH8RSC18GJhYLIVeY= Message-ID: Date: Mon, 31 Jan 2005 13:08:49 -0800 From: Ulrich Drepper Reply-To: Ulrich Drepper To: Ben Greear Subject: Re: close-exec flag not working in 2.6.9? Cc: linux-kernel In-Reply-To: <41FDE497.6040308@candelatech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41FDE497.6040308@candelatech.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 491 Lines: 11 On Sun, 30 Jan 2005 23:56:07 -0800, Ben Greear wrote: > flags = fcntl(s, F_GETFL); > flags |= (FD_CLOEXEC); > if (fcntl(s, F_SETFL, flags) < 0) { These have to be F_GETFD and F_SETFD respectively. Note L -> D. - 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/