利用SIGUSR1和SIGUSR2实现父子进程同步输出
#include<stdio.h>#include<signal.h>#include <unistd.h>void pdosig(int num ,struct __siginfo * _siginfo, void * ptr){ static int count = 0; printf("I am parent ,pid is %d