ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Burton" <bi...@progress.com>
Subject Re: ant hangs after shell based background forking
Date Fri, 23 Nov 2001 19:38:22 GMT
Hello,

See my recent posting at
http://marc.theaimsgroup.com/?l=ant-user&m=100621497023872&w=2 on a
workaround for UNIX.

-Bill

Klemens Hemm wrote:
> 
> 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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message