signalget.c
#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>
//信号捕获回调函数,软中断
void handler(int signum,siginfo_t *info,void *flag)
{
printf("sinum = %d\n",signum); //信号编号
if(flag
signalget.c
#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>
//信号捕获回调函数,软中断
void handler(int signum,siginfo_t *info,void *flag)
{
printf("sinum = %d\n",signum); //信号编号
if(flag