From owner-freebsd-java@FreeBSD.ORG Mon Nov 14 18:10:11 2011 Return-Path: Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58D81106567D for ; Mon, 14 Nov 2011 18:10:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 493738FC08 for ; Mon, 14 Nov 2011 18:10:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id pAEIABSr074419 for ; Mon, 14 Nov 2011 18:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id pAEIABEp074418; Mon, 14 Nov 2011 18:10:11 GMT (envelope-from gnats) Date: Mon, 14 Nov 2011 18:10:11 GMT Message-Id: <201111141810.pAEIABEp074418@freefall.freebsd.org> To: freebsd-java@FreeBSD.org From: Jung-uk Kim Cc: 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 Reply-To: Jung-uk Kim 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:10:11 -0000 The following reply was made to PR java/162522; it has been noted by GNATS. From: Jung-uk Kim To: freebsd-java@freebsd.org Cc: Stephen Sanders , freebsd-gnats-submit@freebsd.org Subject: Re: java/162522: OpenJDK 6 is not setting close on exec Date: Mon, 14 Nov 2011 13:05:47 -0500 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