我得到核心轉儲以下運行程序時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