chore(main): handle SIGSEGV signal

This commit is contained in:
fengzero
2023-03-07 05:21:13 +00:00
parent 71470eb60d
commit 7f6c0a4785
+1
View File
@@ -59,6 +59,7 @@ static int neuron_run(const neu_cli_args_t *args)
signal(SIGINT, sig_handler);
signal(SIGTERM, sig_handler);
signal(SIGABRT, sig_handler);
signal(SIGSEGV, sig_handler);
// try to enable core dump
rl.rlim_cur = rl.rlim_max = RLIM_INFINITY;