in reply to Re: Race conditions
in thread Race conditions

Hi,
I was not at all clear with my post . I thought I could use flock on -unless-
to prevent a race condition. since the code is in between the opening and closing of the
semaphore file. I can not figure out a different way to check if a file exist and write to it ,so it is not possible
for a race condition to accrue as it could using unless.

Replies are listed 'Best First'.
Re^3: Race conditions
by ikegami (Patriarch) on Nov 16, 2010 at 23:45 UTC

    Actually, this is the post that I can't understand. What do you want your code to do?

      I have to do more reading and research on flock.
      Hopefully I will be able to post a question that makes more
      sense after my research.