This question is similar to this one that I searched.
However, in my case, I wanted to launch a sub-process from Java,where it would not inherit files/ports from the parent process (JVM). Is this possible in Java at all? Any workarounds?
from what I gathered, it appears that Java does not provide a way to mark file descriptors with the close on exec flag (FD_CLOEXEC), unlike C. Any insights would be greatly appreciated.
Thanks!