java/162522: OpenJDK 6 is not setting close on exec
Jung-uk Kim
jkim at FreeBSD.org
Mon Nov 14 18:05:56 UTC 2011
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
More information about the freebsd-java
mailing list