ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: cvs commit: ant/docs/manual/CoreTasks exec.html
Date Tue, 29 Jul 2003 07:42:28 GMT
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).

(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.

Stefan

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


Mime
View raw message