Name: nt126004 Date: 09/20/2001
If you execute a process via java.lang.Runtime.exec(), the new process inherits
all handles from the calling process.
Under some circumstances, it will be necessary, that the callee does not
inherit the handles (e.g. TCP listen ports).
E.g.:
1. Process A opens a TCP listener.
2. Process A executes process B, that runs for some time.
3. Process A fails and terminates.
4. A watchdog restarts process A.
5. Process A cannot open its TCP listener, since the port is still in use (by B).
(Review ID: 132241)
======================================================================
- duplicates
-
JDK-4109888 (process spec) Semantics of external process is not defined in JLS
- Closed