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
<2013>
2014
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
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|