summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--docs/changes.xml6
-rw-r--r--src/ruby/nxt_ruby.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/changes.xml b/docs/changes.xml
index 85749bff..586063db 100644
--- a/docs/changes.xml
+++ b/docs/changes.xml
@@ -107,6 +107,12 @@ the ruby application process could crash if it's interrupted by SIGTERM signal.
<change type="bugfix">
<para>
+prevent the ruby application processes from crashing on SIGINT (^C).
+</para>
+</change>
+
+<change type="bugfix">
+<para>
when isolated PID numbers reach the prototype process host PID,
the prototype crashed.
</para>
diff --git a/src/ruby/nxt_ruby.c b/src/ruby/nxt_ruby.c
index 07d02dce..f316d8a5 100644
--- a/src/ruby/nxt_ruby.c
+++ b/src/ruby/nxt_ruby.c
@@ -270,6 +270,8 @@ nxt_ruby_start(nxt_task_t *task, nxt_process_data_t *data)
static char *argv[2] = { (char *) "NGINX_Unit", (char *) "-e0" };
+ signal(SIGINT, SIG_IGN);
+
conf = data->app;
c = &conf->u.ruby;