@@ -916,6 +916,7 @@ main(int argc, char *argv[])
916916 char * * argv_restart = 0 ;
917917 int pid ;
918918 time_t server_start_time = 0 ;
919+ int disable_stack_trace = 0 ;
919920
920921 hr_set_symbolic_action_table (NEW_SRV_ACTION_LAST , ns_symbolic_action_table , ns_submit_button_labels , 0 );
921922 time (& server_start_time );
@@ -948,6 +949,9 @@ main(int argc, char *argv[])
948949 } else if (!strcmp (argv [i ], "-R" )) {
949950 params .restart_mode_flag = 1 ;
950951 ++ i ;
952+ } else if (!strcmp (argv [i ], "-nst" )) {
953+ disable_stack_trace = 1 ;
954+ ++ i ;
951955 } else if (!strcmp (argv [i ], "--" )) {
952956 argv_restart [j ++ ] = argv [i ];
953957 i ++ ;
@@ -965,6 +969,9 @@ main(int argc, char *argv[])
965969 if (i != argc ) startup_error ("invalid number of parameters" );
966970 argv_restart [j ] = 0 ;
967971 start_set_args (argv_restart );
972+ if (disable_stack_trace <= 0 ) {
973+ start_enable_stacktrace (NULL );
974+ }
968975
969976 if (!(pid = start_find_process ("ej-contests" , NULL , 0 ))) {
970977 params .force_socket_flag = 1 ;
0 commit comments