This may be off-base, but... I've been running into a similar problem in .NET when running the NUnit console runner from NCover. In this case, I also had a .NET process (NCover) spawning another process (NUnit.Console), and waiting for it to complete. I solved the problem by modifying NUnit.Console.exe (the process being spawned and waited on) so that its Main method explicitly ends with a call to System.Environment.Exit(int), rather than simply being allowed to unwind. I suspected that my code in the spawned process was setting up some worker threads which were preventing the process from ending naturally when spawned by another process, even though it successfully unwound when invoked from the shell.
You didn't mention whether or not your spawned process was your own code or not. If you do have access to its source code, though, then this is something you can easily try out. Chris -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of s zim Sent: 31 August 2006 19:13 To: nant-users@lists.sourceforge.net Subject: [NAnt-users] nant process hanging question Have a fairly extensive build process consisting of file copy's, .Net compilations, sql scripts, and some custom exe's. My problem is that the first custom exe that gets run seems to run to completion ok but then hangs and does not return a status back to Nant. So the exe process hangs around and both appear to hang. The exe runs fine when run alone from the command like with the same parameters...just not when called by nant. Thoughts? Thanks. _________________________________________________________________ Call friends with PC-to-PC calling -- FREE http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&sour ce=wlmailtagline ------------------------------------------------------------------------ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users