java/162522: OpenJDK 6 is not setting close on exec

Jung-uk Kim jkim at
Mon Nov 14 18:10:11 UTC 2011

The following reply was made to PR java/162522; it has been noted by GNATS.

From: Jung-uk Kim <jkim at>
To: freebsd-java at
Cc: Stephen Sanders <ssanders at>,
 freebsd-gnats-submit at
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 
 Jung-uk Kim

More information about the freebsd-java mailing list