From owner-freebsd-java@FreeBSD.ORG Mon Nov 14 18:05:56 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id B6FD6106566B; Mon, 14 Nov 2011 18:05:56 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-java@freebsd.org Date: Mon, 14 Nov 2011 13:05:47 -0500 User-Agent: KMail/1.6.2 References: <201111131606.pADG6Owg074310@red.freebsd.org> In-Reply-To: <201111131606.pADG6Owg074310@red.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111141305.49582.jkim@FreeBSD.org> Cc: freebsd-gnats-submit@freebsd.org, Stephen Sanders Subject: Re: java/162522: OpenJDK 6 is not setting close on exec X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2011 18:05:56 -0000 On Sunday 13 November 2011 11:06 am, Stephen Sanders wrote: > It appears that OpenJDK does not set close on exec for file handles > where Diablo did. > > If a process attempts to restart itself via fork/exec without > closing all file handles first, it's child will fail with > complaints of 'socket in use'. Of course, this depends on what the > child is doing. Probably the best example is tomcat calling a > shell script that restarts tomcat. This problem should have been fixed in b21_1. However, it requires fdescfs(5) as described in pkg-message. Please check your configurations. Jung-uk Kim