DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40632>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40632

           Summary: spawned process through exec task blocks parent exec
                    task
           Product: Ant
           Version: 1.7.0Beta2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


Under Windows, a process inherits handles even when spawned using the Exec task
with the spawn attribute. This makes an Exec task that calls another Exec task
with the spawn attribute to block until the spawned process exits.

The source of the problem may be in the JVM where a spawned process may be
created using the Win32 API CreateProcess with the bInheritHandles attribute set
to TRUE, while it should be FALSE for spawned processes.

A workaround can be to insert a process that will spawn the original process
with the bInheritHandles attribute set to FALSE.

See attached Ant script demonstrating the environment, the problem and the
workaround.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to