RFR: 6402201: ProcessAttachTest.sh needs better synchronization

Alan Bateman Alan.Bateman at oracle.com
Tue Nov 19 01:19:41 PST 2013


On 19/11/2013 09:00, Jaroslav Bachorik wrote:
>
> I think it is. Writing to a file does not guarantee that it's creation 
> and actual write are atomic :(
>
> What I used to do was to write the data to one file and the use a 
> second signaling file to notify the other party that the data has been 
> successfully written and can be read.
It's probably overkill here. The more usual "protocol" is to create the 
file with a different name and then rename it to the expected file.

-Alan


More information about the serviceability-dev mailing list