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  <20132014  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  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: What I learned today...
From: Andrew Johnson <[email protected]>
To: [email protected]
Date: Thu, 28 Feb 2013 11:22:06 -0600
Hi,

On 2013-02-28 Michael Davidsaver wrote:
> On 02/28/2013 09:57 AM, Benjamin Franksen wrote:
> > (1) The script can be called more often than necessary:
> 
> I don't think this is the case as long as the command
> './create_some_files.pl' creates all three files (which I assume it what
> you intended).

If the target files can be created from more than one architecture and are 
generated in the O.Common directory or get installed into one of the common 
top-level directories (db, dbd, etc.) then you get this kind of problem, and 
it's actually very hard if not impossible to prevent a race between different 
target builds because they are not synchronized.

We get around that in Base now by always generating files into the O.<arch> 
directory and moving them into O.Common afterwards.  A move is an atomic 
operation in the file-system, so it doesn't matter if there is a race because 
the generated files *should* be identical.

We had to modify the installEpics.pl script so it now copies the file into the 
target directory using a temporary name and only then renames it to the final 
name.

- Andrew
-- 
There is no such thing as a free lunch.  When invited for lunch,
it is best to check if you are there to eat, or to be eaten.
-- Clive Robinson

Replies:
Re: What I learned today... Benjamin Franksen
References:
What I learned today... Benjamin Franksen
Re: What I learned today... Benjamin Franksen
Re: What I learned today... Michael Davidsaver

Navigate by Date:
Prev: RE: JCA Error Mark Rivers
Next: Re: Strange Interaction between CA gateway and CAJ Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: What I learned today... Michael Davidsaver
Next: Re: What I learned today... Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·