MRI: Handle exceptions raised in preloaded scripts

This commit is contained in:
Jonas Kulla 2014-10-15 06:27:43 +02:00
parent 2cd70b9edd
commit 47851718eb
1 changed files with 4 additions and 0 deletions

View File

@ -437,6 +437,10 @@ static void runRMXPScripts(BacktraceData &btData)
for (size_t i = 0; i < conf.preloadScripts.size(); ++i) for (size_t i = 0; i < conf.preloadScripts.size(); ++i)
runCustomScript(conf.preloadScripts[i]); runCustomScript(conf.preloadScripts[i]);
VALUE exc = rb_gv_get("$!");
if (exc != Qnil)
return;
while (true) while (true)
{ {
for (long i = 0; i < scriptCount; ++i) for (long i = 0; i < scriptCount; ++i)