Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: Alexander Schremmer Subject: Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd Date: Tue, 28 Oct 2003 17:04:59 +0100 Organization: XOR AX,AX Lines: 17 Message-ID: <1q80414uviuww$.dlg@alexanderweb.de> References: <20031028031312 DOT GA9238 AT redhat DOT com> <20031028155621 DOT GA29657 AT redhat DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet AT sea DOT gmane DOT org X-Now-Playing: "Laidback Luke -- Windmill Skill" (Winamp 2.4110497) User-Agent: 40tude_Dialog/2.0.7.1de Hi, On Tue, 28 Oct 2003 10:56:21 -0500, Christopher Faylor wrote: > On Tue, Oct 28, 2003 at 10:27:23AM +0100, Alexander Schremmer wrote: >>Is it enough to call ftell(stdout) and check for != -1 to check for a valid >>stdout? Then I'd submit that patch to apcupsd. > > Why don't you verify this for yourself rather than ask for corroboration > from people who have never used the program? There is no magic here. because I have no working gcc tool chain here. The quoted question just refers to the check of the state of a stream, not to this particular program. Kind regards, Alexander -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/