Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933625Ab1EXVtK (ORCPT ); Tue, 24 May 2011 17:49:10 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:58706 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753245Ab1EXVtI (ORCPT ); Tue, 24 May 2011 17:49:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FOqeGxtGo0HyzgB6PLKa/R0LRep7aZrl2XcpJfxfJejcOzZG6I3u7kvrbihEyak6dc 1z759/vab53e1v8Y9WIIcJvtq5gApeuKoQdZanDLe+7NSg1a2nOm9rO+oQVoFjKzq2cA XuDmKI2ttAfLh4NGsgk15GiP7MMdiYuhkl4dg= MIME-Version: 1.0 In-Reply-To: <1306270010.7501.43.camel@hiromu-MacBook> References: <1306167401.18840.8.camel@hiromu-MacBook> <1306242400.7501.10.camel@hiromu-MacBook> <4DDBB150.2090602@suse.cz> <1306247192.7501.25.camel@hiromu-MacBook> <4DDBC846.8050402@suse.cz> <1306258716.7501.35.camel@hiromu-MacBook> <1306270010.7501.43.camel@hiromu-MacBook> Date: Tue, 24 May 2011 17:49:08 -0400 Message-ID: Subject: Re: [PATCH] Kconfig: add warning about permission of config file From: Arnaud Lacombe To: Hiromu Yakura Cc: Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, zippel@linux-m68k.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 720 Lines: 19 Hi, On Tue, May 24, 2011 at 4:46 PM, Hiromu Yakura wrote: > [...] > conf_write() is called after the configure changed. > So I don't think we should handle the failed case of conf_write() > because the purpose of this patch is not to losing changes. > Then your patch is incomplete. only open(2) and write(2) can fail in more than 30 different ways, you check 1. - Arnaud ps: I am not even addressing the race-condition introduced by your patch... -- 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/