From: Eric Dumazet Subject: Re: [PATCH] fs: add FD_CLOFORK and O_CLOFORK Date: Sat, 07 May 2011 08:29:14 +0200 Message-ID: <1304749754.2821.712.camel@edumazet-laptop> References: <1304743740-3405-1-git-send-email-xiaosuo@gmail.com> <1304748394.2821.654.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alexander Viro , Matthew Wilcox , Arnd Bergmann , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org To: Changli Gao Return-path: In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Le samedi 07 mai 2011 =C3=A0 14:22 +0800, Changli Gao a =C3=A9crit : > It seems more clear. Thanks. >=20 > BTW: I will work on F_CLOSFD after this patch accepted. It is useful > to close all the opened file descriptors when programing a daemon. >=20 I am sure the following idea already was discussed in the past : Embed the close_on_exec / close_on_close bits in the low order bits of file pointers. Might be interesting to raise it again.