Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $lock = "/var/www/html/shhabcam/LOGS/lock_file.txt"; sysopen LOCK, $lock, O_CREAT or die "Can't sysopen $lock: $!" +; flock LOCK, LOCK_EX or die "Can't flock $lock: $!";
this blocks successfully with two users...does it have any issues with 6 or more users?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: 'flock' with multiple users
by haukex (Archbishop) on Sep 08, 2017 at 15:24 UTC | |
by Anonymous Monk on Sep 08, 2017 at 15:33 UTC | |
by Corion (Patriarch) on Sep 08, 2017 at 16:09 UTC | |
by Anonymous Monk on Sep 08, 2017 at 16:24 UTC | |
by davido (Cardinal) on Sep 08, 2017 at 16:44 UTC | |
by TheloniusMonk (Sexton) on Jul 30, 2020 at 13:24 UTC | |
by Corion (Patriarch) on Jul 30, 2020 at 13:28 UTC | |
by haukex (Archbishop) on Sep 08, 2017 at 15:37 UTC | |
|
Re: 'flock' with multiple users
by afoken (Chancellor) on Sep 08, 2017 at 18:28 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |