Hi Michael, I am the author of the changes to UNIXProcess_md.c. File descriptor 3 is used to communicate any cause of failure back to the parent process. One might think that the openjdk7 code would work on BSD because if the standard way of opening /proc/self/fd, it falls back to closing all descriptors up to sysconf(_SC_OPEN_MAX), which one would think the BSDs would have implemented. In any case, even if the current jdk7 code doesn't work on BSD, it should be easy to create a small patch to it that would be portable to more Unix systems, that could be accepted upstream. I would be willing to review. Martin On Fri, Oct 24, 2008 at 22:15, Michael Franz <mvfranz@gmail.com> wrote:
Hi,
I have been trying to using OpenJDK BSD to run Eclipse and Netbeans. I have been successful in both, but it was not very useful as I there was no way to actually run my code from within the IDEs. There is an issue with OpenJDK for BSD being unable to start a process. After many compiles and narrowing the problem down to the closeDescriptors I was able to find this posting that explains why it doesn't work and some history to it. Most importantly, it also has the fix.
http://www.mavetju.org/mail/view_message.php?list=freebsd-java&id=2564148
Applying the patch allows OpenJDK to spawn processes on OS X. Hopefully it will work for all of the BSDs.
Michael