mediawiki-extensions-Scribunto/engines/LuaStandalone
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
..
binaries Add comments and remove trailing whitespace 2014-07-07 14:46:59 -04:00
lua_ulimit.sh Fix file permissions 2014-10-15 12:17:26 +00:00
LuaStandaloneEngine.php Fix race condition in SIGXCPU handling 2015-05-25 16:40:31 +00:00
mw_main.lua Avoid running all of mw.lua twice 2014-05-15 14:15:08 -04:00
MWServer.lua Add comments and remove trailing whitespace 2014-07-07 14:46:59 -04:00
protocol.txt Add comments and remove trailing whitespace 2014-07-07 14:46:59 -04:00