Hi,

overall I want to start a daemon by ant-1.4.1
the following fragment should start xlogo in the background and return
The corresponding command would be "sh -c logo &"

    <exec executable="sh">
      <arg value="-c" />
      <arg value="xlogo &amp;" />
    </exec>

this

1) executes/bin/sh
2) executes xlogo
3) ends /bin/sh
4) keeps up xlogo and linking its parent pid to 1 since its paraent 
process has dies
5) but, hangs ant in the following code:

PumpStreamHandler.stop
  .... inputThread.join()  line 111
  ... and also hangs errorThread.join some lines below

after commenting the join thread waiting out , everything works as 
expected, i.e. ant returns from the exec task

is this a ant bug/feature and how can a get around of that ?
is the uncommenting ok or should that be handled more gracefully ?

Klemens



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to