in reply to Exclusive locks on CentOS 5.5

At least on the server-side, there's a conflict between flock()/BSD, which perl uses, and flock()/POSIX for which I really couldn't find a decent solution for but to workaround it by using LockFile::Simple. It's not based on flock() or lockf() and can be customized.

Replies are listed 'Best First'.
Re^2: Exclusive locks on CentOS 5.5
by RL (Monk) on Dec 29, 2010 at 11:05 UTC

    Hi Khen1950fx.

    At a first glance LockFile::Simple seems to be much better than my home-brewed semaphore solution, which isn't much of a surprise to me :).

    I'll take a closer look and likely will use it soon.

    Thanks
    RL