我得到核心转储以下运行程序时SIGABRT信号:如何处理在UNIX
$ 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信号的方法。
http://en.wikipedia.org/wiki/SIGABRT – 2011-05-03 09:46:01