ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conor MacNeill <co...@cortexebusiness.com.au>
Subject Re: cvs commit: ant/docs/manual/CoreTasks exec.html
Date Tue, 29 Jul 2003 07:58:22 GMT
On Tue, 29 Jul 2003 05:42 pm, Stefan Bodewig wrote:
> On 28 Jul 2003, <antoine@apache.org> wrote:
> >   in the sense that I do not connect at all the new process to
> >   stream handlers and the ant logging system, disabling input,
> >   output, error, and return exec attributes in the case of spawn.
>
> Won't this cause
>
> (1) the spawned process to hang as soon as it tries to read from stdin
> (no big deal as it isn't supposed to do so, I guess).
>

Just off the top of my head, I think we can close that stream which will cause 
an EOF rather than a hang.

> (2) the spawned process to be stoped or even killed by the system (at
> least Unix) as soon as it tries to write to stdout or stderr (probably
> either with SIGTTOU, SIGPIPE or SIGHUP).
>
> The better approach for (2) would probably be to enforce the output
> and or error attributes to be set for spawn="true" and probably use OS
> specific redirections instead of stream handlers to ensure the spawned
> process will never try to write to stdout/err.
>

Why not just "caveat user" :-)

Conor


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


Mime
View raw message