特牛网址导航

Linuxc 信号的使用2 sigqueue函数和sigaction函数-CSDN博客

网友收藏
1.进程A向进程B发送SIGUSR1信号;2.进程B收到信号后,打印字符串“receive SIGUSR1”;3.要求用sigqueue函数和sigaction函数实现以上功能;源代码:sigqueue.c#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <signal....