mediawiki-extensions-Scribunto/engines
Tim Starling e7f5aae520 Fix race condition in SIGXCPU handling
Marius found a race condition in the handling of SIGXCPU: the pipes
would close, causing the read/write to complete, before the status of
the process changed, so the status would randomly be "running" for a few
milliseconds after proc_get_status() was called.

So: terminate the process unconditionally after an I/O error. Get the
exit status from proc_close(), since that's the only way to get the
status of a terminated process while simultaneously waiting for it to
exit. Also fix signal identification as in unmerged patch I57cdf8aa.

Change-Id: I252ec046e82063a868c1094e81705cb5e847db92
2015-05-25 16:40:31 +00:00
..
LuaCommon ustring: Handle empty charset like Lua does 2015-04-13 18:20:33 -04:00
LuaSandbox Rewrite error handling to avoid OutputPage::addInlineScript 2015-03-16 16:08:44 -04:00
LuaStandalone Fix race condition in SIGXCPU handling 2015-05-25 16:40:31 +00:00