Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263871AbUDNEse (ORCPT ); Wed, 14 Apr 2004 00:48:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263872AbUDNEse (ORCPT ); Wed, 14 Apr 2004 00:48:34 -0400 Received: from dbl.q-ag.de ([213.172.117.3]:30390 "EHLO dbl.q-ag.de") by vger.kernel.org with ESMTP id S263871AbUDNEsd (ORCPT ); Wed, 14 Apr 2004 00:48:33 -0400 Message-ID: <407CC26D.6070307@colorfullife.com> Date: Wed, 14 Apr 2004 06:47:41 +0200 From: Manfred Spraul User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.4.1) Gecko/20031114 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Wright CC: Andrew Morton , Ulrich Drepper , Linux Kernel Subject: Re: mq_open() and close_on_exec? References: <20040413174005.Q22989@build.pdx.osdl.net> In-Reply-To: <20040413174005.Q22989@build.pdx.osdl.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 21 Chris Wright wrote: >SUSv3 doesn't seem to specify one way or the other. I don't have the >POSIX specs, and the old docs I have suggest that mq_open() creates an >object which is to be closed upon exec. Anyone have a clue if this is >actually required? Patch below sets this as default (if indeed it's >valid/required). > > Did you test what other unices do? I think the patch is correct - at least solaris implements message queues in user space, and then an exec should close everything. -- Manfred - 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/