EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: stdout/stderr buffering on Windows
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Wed, 5 Feb 2014 13:13:24 -0600
Hi Freddie,

On 02/05/2014 11:59 AM, [email protected] wrote:
> just posting a note on an issue we have come across in case it is
> helpful to anybody else. We are using Cygwin procServ on Windows to
> start IOCs (Windows 7 / EPICS BASE 3.14.12.2) and, although stdout
> was appearing when we typed commands in the telnet window, stderr was
> not. When the IOC exited, however, the stderr output appeared so it
> seems that stderr was being buffered.

> A "google" on the subject returned some
> references to this sort of behaviour when the Windows runtime does
> not recognize the connection as a "terminal" - running the IOC
> directly in a console windows certainly work OK

I do not see that buffering behaviour when running an IOC in a Cygwin
OpenSSH session either.

The Linux manpage for setvbuf(3) says "The standard error stream stderr
is always unbuffered by default" which is apparently required by both
the C89 and C99 standards. I would be reluctant to add code to the IOC
to turn buffering off when it should never be necessary to do that.

Might this be indicative of a bug in procServ, or would it make sense/be
possible for procServ to fix the Windows bug (rather than having to
change the programs running under it)?

- Andrew
-- 
Advertising may be described as the science of arresting the human
intelligence long enough to get money from it. -- Stephen Leacock

Replies:
RE: stdout/stderr buffering on Windows freddie.akeroyd
Re: stdout/stderr buffering on Windows J. Lewis Muir
References:
stdout/stderr buffering on Windows freddie.akeroyd

Navigate by Date:
Prev: stdout/stderr buffering on Windows freddie.akeroyd
Next: Re: TPRO Field Definition Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: stdout/stderr buffering on Windows freddie.akeroyd
Next: RE: stdout/stderr buffering on Windows freddie.akeroyd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·