[njs] Fixed inheriting debug metadata while cloning a VM.

Dmitry Volyntsev xeioex at nginx.com
Fri Nov 17 16:06:04 UTC 2017


details:   http://hg.nginx.org/njs/rev/5637024772aa
branches:  
changeset: 423:5637024772aa
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Fri Nov 17 18:55:07 2017 +0300
description:
Fixed inheriting debug metadata while cloning a VM.

diffstat:

 njs/njscript.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r a83775113025 -r 5637024772aa njs/njscript.c
--- a/njs/njscript.c	Fri Nov 17 18:55:07 2017 +0300
+++ b/njs/njscript.c	Fri Nov 17 18:55:07 2017 +0300
@@ -332,6 +332,8 @@ njs_vm_clone(njs_vm_t *vm, nxt_mem_cache
         nvm->global_scope = vm->global_scope;
         nvm->scope_size = vm->scope_size;
 
+        nvm->debug = vm->debug;
+
         ret = njs_vm_init(nvm);
         if (nxt_slow_path(ret != NXT_OK)) {
             goto fail;


More information about the nginx-devel mailing list