From: "Alex Oleynikov" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Stderr redirection problems Lines: 47 X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 09 Jul 2002 13:10:14 GMT NNTP-Posting-Host: 68.15.54.9 X-Complaints-To: abuse AT cox DOT net X-Trace: news2.east.cox.net 1026220214 68.15.54.9 (Tue, 09 Jul 2002 09:10:14 EDT) NNTP-Posting-Date: Tue, 09 Jul 2002 09:10:14 EDT Organization: Cox Communications To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > Actually, `redir' opens the COM3 port even before it runs the > application. It has no way of knowing whether something is actually > output to the port (to say nothing of the fact that while the application > executes, `redir' is suspended--this is DOS, remember?--and so none of > `redir's own code can run). > OK, but the strange thing is that I am able to send everything to COM3 from withing my program prior to the moment when stderr is accessed first time. After that it is only redir's output getting through. Strange thing happens though. At start-up the program normally outputs to the COM3 the following data: POWER UP TIME