EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: caRepeater must run before casr
From: Eric Norum <[email protected]>
To: tech-talk tech-talk <[email protected]>
Date: Mon, 8 Jan 2007 14:05:56 -0600
Let me guess.
Windows doesn't have fstat, right?
So we need yet another libCom routine, perhaps epicsIsSocket()?

On Jan 8, 2007, at 1:14 PM, Eric Norum wrote:

Jeff's reply is correct, but doesn't really deal with the problem discovered by Dennis since it is stdout which is causing the problem and stdout does not have 'close-on-exec' set.

I propose that on startup caRepeater check stdin/stdout/stderr and if fstat(fileno(fp))reveals that the stream is a socket that the stream be closed and reopened to /dev/null. This precludes running caRepeater in a pipeline, but I'm not sure that's really that much of a problem.


-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793



References:
RE: caRepeater must run before casr Jeff Hill
Re: caRepeater must run before casr Eric Norum

Navigate by Date:
Prev: RE: soft IOC string and array records Jeff Hill
Next: RE: soft IOC string and array records Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: caRepeater must run before casr Eric Norum
Next: Re: I have a question about using muti IOC Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·