diff --git a/docs/changes.xml b/docs/changes.xml index 85749bff..586063db 100644 --- a/docs/changes.xml +++ b/docs/changes.xml @@ -105,6 +105,12 @@ the ruby application process could crash if it's interrupted by SIGTERM signal. + + +prevent the ruby application processes from crashing on SIGINT (^C). + + + when isolated PID numbers reach the prototype process host PID, 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;