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
<2007>
2008
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
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|