[njs] Fixed accumulative flag in CLI file mode.

Dmitry Volyntsev xeioex at nginx.com
Wed Nov 7 15:41:48 UTC 2018


details:   http://hg.nginx.org/njs/rev/f174a6ad9c3c
branches:  
changeset: 640:f174a6ad9c3c
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Nov 07 18:41:25 2018 +0300
description:
Fixed accumulative flag in CLI file mode.

diffstat:

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

diffs (12 lines):

diff -r 0372810c0d98 -r f174a6ad9c3c njs/njs_shell.c
--- a/njs/njs_shell.c	Tue Nov 06 20:57:53 2018 +0300
+++ b/njs/njs_shell.c	Wed Nov 07 18:41:25 2018 +0300
@@ -145,7 +145,7 @@ main(int argc, char **argv)
 
     nxt_memzero(&vm_options, sizeof(njs_vm_opt_t));
 
-    vm_options.accumulative = 1;
+    vm_options.accumulative = opts.interactive;
     vm_options.backtrace = 1;
     vm_options.sandbox = opts.sandbox;
 


More information about the nginx-devel mailing list