Files
oddmuse/modules
Alex Schroeder 9e1cccb84f Stop leaving locks behind
Previously if some user cancelled his request (simply by pressing Stop button
in his browser), then the script will receive a TERM signal or the like.

This means that some locks could be left behind, which required someone
to unlock the wiki manually (by using Unlock Wiki action).

Now we remove these locks automatically!

However, some tasks might want to handle such situations gracefully. That's why
%LockCleaners hash was added. Use lock name as the key and put a coderef as a
value. If SIGTERM (or a bunch of other signals) is received, then it will run
this code, which, supposedly, cleans all of the stuff after it. Private Wiki
Extension was changed according to that, so you can see it in action.

Also, tests added!
2015-09-23 21:07:02 +03:00
..
2015-09-12 19:06:59 +02:00
2015-09-04 04:55:48 +03:00
2015-09-04 04:55:48 +03:00
2014-11-06 21:48:08 +01:00
2015-09-04 04:55:48 +03:00
2015-07-28 10:47:21 +02:00
2015-09-23 21:07:02 +03:00
2015-08-18 11:11:13 +02:00
2015-08-18 11:11:13 +02:00
2015-09-04 04:55:48 +03:00
2015-07-28 10:49:42 +02:00