ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40632] New: - spawned process through exec task blocks parent exec task
Date Thu, 28 Sep 2006 17:23:06 GMT
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: zwige01@ca.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message