On Tue, 29 Jul 2003 05:42 pm, Stefan Bodewig wrote:
> On 28 Jul 2003, <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to