[Koha-bugs] [Bug 15529] Process Message Queue may send duplicate emails if process is launched twice

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 2 09:26:34 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15529

--- Comment #42 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
+my $instancemessagequeuefile = $logdir . "/messagequeue.lock";
+open(FOO, ">> $instancemessagequeuefile") or die "Cannot write to
$instancemessagequeuefile: $!";
As Martin already said, the logdir might not be the best candidate. Also look
at locking in rebuild_zebra.pl. Note that it tries three places and continues
even if the system does not facilitate locking.
I see in the follow-ups that you change it. Fine. You now copy locking from
rebuild_zebra. Please consolidate: move it to a module.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list