[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ant-user
Subject:    java task: fork vs spawn
From:       Marcelo Nery dos Santos <marcelo.nery () gmail ! com>
Date:       2005-07-29 4:36:34
Message-ID: f227ec3a0507282136c100bf8 () mail ! gmail ! com
[Download RAW message or body]

Hi,

The fork option (to the java task) is creating a java process
outliving ant. Is it ok?

---

The specification of the "fork" option is:

if enabled triggers the class execution in another VM (disabled by default)

While the specification of the "spawn" states that:

if enabled allows to start a process which will outlive ant.
Requires fork=true

---

If I use a regular kill to finish the ant process, a clean-up happens
also killing the forked JVM. On the other hand, if a "kill -9" is
used, the forked VM remains dangling, detached from any ant process.

Is there a way to keep those processes tighten?

Regards,

Marcelo

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic