Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • I would guess that sentinel and semaphore file locking are similar, just using different names.

    I would think flocking should work, although using a semaphore file would be the belts and suspenders approach if the semaphore file was flocked properly.

    Then again all flocking is dependent upon all apps playing according to the rules.
    • My concern is due to portability issues; I want this thing to work properly anywhere it goes, and my understanding of flock is that its implementation on Win* is crappy if it's not NT-based.
      --

      ------------------------------
      You are what you think.
      • I can't recall. All of my win'ders books are at home and I haven't had a chance to go through the FAQ and perldocs to see where that stands.

        IIRC, the "modern" versions of the ActiveState's Perl (not that it's different than the standards perl) handles the threading and flocking issues correctly, but some reading needs to be done.