Re: Another ProcessBuilder enhancement: execve

2016-10-21 Thread Martin Buchholz
Historically, this was thought to be not an option because Windows doesn't have exec (or fork). Cygwin's emulation of fork does create a windows subprocess, I believe. The desire to have clean shutdown of the Java process does make things more interesting as well, as you point out. One use case i

Another ProcessBuilder enhancement: execve

2016-10-21 Thread David M. Lloyd
It would be useful for processes which self-update or otherwise self-manage to be able to exec a new process which replaces the current one, in the manner of POSIX execve. This might tie in with ProcessBuilder, though there are a few key differences: 1. The method to execute the process (obvi