Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Christopher Faylor
On Tue, Oct 28, 2003 at 10:51:39PM +0100, Alexander Schremmer wrote: >On Mon, 27 Oct 2003 22:13:12 -0500, Christopher Faylor wrote: >>You need to fix apcupsd. > >I submitted a fix based on a idea of Pierre A. Humblet. Assuming that said idea came from the messages in this thread, it's too bad tha

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Alexander Schremmer
Hi, On Mon, 27 Oct 2003 22:13:12 -0500, Christopher Faylor wrote: > You need to fix apcupsd. I submitted a fix based on a idea of Pierre A. Humblet. It will be merged into cvs of apcupsd in the next days by Kern Sibbald. EOD/EOT Kind regards, Alexander -- Unsubscribe info: http://cygwin

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Alexander Schremmer
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 fo

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Christopher Faylor
On Tue, Oct 28, 2003 at 01:57:19PM +0100, Alexander Schremmer wrote: >On Tue, 28 Oct 2003 12:03:24 +0100, Corinna Vinschen wrote: >> On Tue, Oct 28, 2003 at 10:41:02AM +0100, Alexander Schremmer wrote: >>> >>> / [JFYI - Sending mail to [EMAIL PROTECTED]:] ---\ >>> | <[EMAIL PRO

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Christopher Faylor
On Tue, Oct 28, 2003 at 10:27:23AM +0100, Alexander Schremmer wrote: >Christopher Faylor wrote: >> This is not a cygwin problem. It is a problem with a program >> that assumes that it has a valid stdout. It is perfectly >> possible that a program can be started with no stdout, stdin, or stderr.

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Larry Hall
At 07:57 AM 10/28/2003, Alexander Schremmer you wrote: >On Tue, 28 Oct 2003 12:03:24 +0100, Corinna Vinschen wrote: >Hi, > >> On Tue, Oct 28, 2003 at 10:41:02AM +0100, Alexander Schremmer wrote: >>> >>> / [JFYI - Sending mail to [EMAIL PROTECTED]:] ---\ >>> | <[EMAIL PROTECTED]

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Alexander Schremmer
On Tue, 28 Oct 2003 12:03:24 +0100, Corinna Vinschen wrote: Hi, > On Tue, Oct 28, 2003 at 10:41:02AM +0100, Alexander Schremmer wrote: >> >> / [JFYI - Sending mail to [EMAIL PROTECTED]:] ---\ >> | <[EMAIL PROTECTED]>: | >> | Sorry,

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Corinna Vinschen
On Tue, Oct 28, 2003 at 10:41:02AM +0100, Alexander Schremmer wrote: > On Mon, 27 Oct 2003 22:13:12 -0500, Christopher Faylor wrote: > [something] > > / [JFYI - Sending mail to [EMAIL PROTECTED]:] ---\ > | Hi. This is the qmail-send program at sources.redhat.com. | >

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Alexander Schremmer
On Mon, 27 Oct 2003 22:13:12 -0500, Christopher Faylor wrote: [something] / [JFYI - Sending mail to [EMAIL PROTECTED]:] ---\ | Hi. This is the qmail-send program at sources.redhat.com. | | I'm afraid I wasn't able to deliver your message to the following | | address

RE: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-28 Thread Alexander Schremmer
Hi, Christopher Faylor wrote: > This is not a cygwin problem. It is a problem with a program > that assumes that it has a valid stdout. It is perfectly > possible that a program can be started with no stdout, stdin, or stderr. The author said that it must a problem of cygwin ... Is it enough

Re: 1.5.5-1: fprintf(stdout, ...) writes to serial port when used by apcupsd

2003-10-27 Thread Christopher Faylor
On Mon, Oct 27, 2003 at 05:46:19PM +0100, Alexander Schremmer wrote: >I am experiencing a bug or race condition while using the newest >release of apcupsd (3.10.6 - 2003-10-10; GPL and available under >http://sourceforge.net/projects/apcupsd) on the newest releast of >Cygwin (1.5.5-1). This bug do