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

Subject: Re: Suggestion for IOC log server
From: Andrew Johnson <[email protected]>
To: Abadie Lana <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 25 May 2011 10:27:29 -0500
Hi Lana,

On 2011-05-25 Abadie Lana wrote:
> So in fact we avoid usage of circulate buffer. But if it can be safely
> removed I would prefer then.

You can do anything you like; it's your control system and the EPICS Open 
License gives you carte blanche to modify the EPICS Base source code however 
you like if the code that we ship doesn't meet your requirements.  In this 
case I think we'll be willing to make the change you're asking for, but you do 
have other options as well.

> One thing I don't understand is this sentence:
> 
> **** The only downside appears to be
> that the server code has to scan through the log-file looking for the write
> location if the name doesn't change, but I don't see that as a major
>  problem myself.  Does anyone object to this?
> *****
> 
> What do you mean?

This was a question to others in the EPICS community who are using the 
iocLogServer since the change that you are proposing does modify the behavior 
of the program slightly in response to a SIGHUP without a name change.  The 
current response is to compare the old and new directory names and just print 
a message to stderr if they are the same, but with your change it will always 
close and reopen the log file in this case and search through it to find the 
correct insertion point (see the seekLatestLine() routine).

If there is anyone who objects to that (minor) change I would consider adding 
a command-line option that enables the behavior you want.  I don't think 
anyone is likely to complain, but I want to give the community a chance to 
point out anything that I've missed before I do that.

- Andrew
-- 
Optimization is the process of taking something that works and
replacing it with something that almost works, but costs less.
-- Roger Needham

References:
Device Support for Nemic Lambda Power Supplies Anthony Andrews
Re: Suggestion for IOC log server Andrew Johnson
RE: Suggestion for IOC log server Abadie Lana

Navigate by Date:
Prev: RE: Another gateway question Jeff Hill
Next: EPICS Codeathon 2011 (Zombie event) Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Suggestion for IOC log server Abadie Lana
Next: Re: Device Support for Nemic Lambda Power Supplies Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·