Ruby: fixed segfault on SIGTERM signal.
This closes #562 issue on GitHub.
This commit is contained in:
@@ -81,6 +81,12 @@ force SCRIPT_NAME in Ruby to always be an empty string.
|
|||||||
</para>
|
</para>
|
||||||
</change>
|
</change>
|
||||||
|
|
||||||
|
<change type="bugfix">
|
||||||
|
<para>
|
||||||
|
the ruby application process could crash if it's interrupted by SIGTERM signal.
|
||||||
|
</para>
|
||||||
|
</change>
|
||||||
|
|
||||||
</changes>
|
</changes>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ nxt_ruby_start(nxt_task_t *task, nxt_process_data_t *data)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = (intptr_t) rb_thread_call_without_gvl(nxt_ruby_unit_run, unit_ctx,
|
rc = (intptr_t) rb_thread_call_without_gvl2(nxt_ruby_unit_run, unit_ctx,
|
||||||
nxt_ruby_ubf, unit_ctx);
|
nxt_ruby_ubf, unit_ctx);
|
||||||
|
|
||||||
if (nxt_ruby_hook_procs != Qnil) {
|
if (nxt_ruby_hook_procs != Qnil) {
|
||||||
|
|||||||
Reference in New Issue
Block a user