0802编写一个程序,使用raise函数向进程自身发送一个SIGABRT信号,使用进程非正常结束

/*

  • 编写一个程序,使用raise函数向进程自身发送一个SIGABRT信号,使用进程非正常结束
    */
    #include <stdio.h>
    #include <signal.h>
    #include <sys/types.h>

int main(int argc, char *argv[])
{
printf("This is a test!\n");
if(raise(SIGABRT)==-1)
{
printf("Send Failed!\n");
exit(1);
}
printf("This is a test,again!\ns");
return 0;
}