Bugs item #1044550, was opened at 2004-10-11 14:29
Message generated for change (Comment added) made by arogldarthu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1044550&group_id=31650

Category: Tasks
Group: 0.8.4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Twan Jacobs (arogldarthu)
Assigned to: Nobody/Anonymous (nobody)
Summary: ExternalProgramBase output threads still running

Initial Comment:
We are experiencing strange behaviour with the console 
output streams of ExternalProgramBase. After the main 
process exits, the output streams are still running in 
their respective threads. This causes output of different 
NAnt tasks to be 'printed' through each other.

In the uploaded file you will find a fragment of our 
console output. It's quite clear that the output of the 
first tasks mingles through the second task's output.

Proposed resolution: add a new TaskAttribute to indicate 
forced waiting for thread exit...

change the following lines:
                // Wait for the threads to terminate
                outputThread.Join(2000);
                errorThread.Join(2000);
                _htThreadStream.Clear();
to:
                // Wait for the threads to terminate
                if (_forceThreadExit)
                {
                    outputThread.Join();
                    errorThread.Join();
                } 
                else 
                {
                    outputThread.Join(2000);
                    errorThread.Join(2000);
                }
                _htThreadStream.Clear();


----------------------------------------------------------------------

>Comment By: Twan Jacobs (arogldarthu)
Date: 2004-10-12 16:38

Message:
Logged In: YES 
user_id=595447

The problem occurs in a rather large build process...
I will try to find some time and create a small example with 
the same effects. Don't hold your breath, it will take a few 
days ;-)

----------------------------------------------------------------------

Comment By: Gert Driesen (drieseng)
Date: 2004-10-11 14:56

Message:
Logged In: YES 
user_id=707851

Would it be possible to attach a repro for this issue ?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1044550&group_id=31650


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to