我在下面的程序运行时得到核心转储:
$ cat test2.c
#include <stdio.h>
#include <stdlib.h>
void main()
{
abort();
}
$
$ cc -o test2 test2.c
"test2.c", line 5: warning #2951-D: return type of function "main" must be
"int"
void main()
^
$ ./test2
Abort(coredump)
$
我收到了 SIGABRT 信号。请建议我处理此 SIGABRT 信号的方法。