sigpending函数失效问题?
代码如下:
#include <stdio.h>
#include <signal.h>
#include <stdarg.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
void sighandler(int signum);
char buffer[200];
int main(void)
{
sigset_t blockset;
sigset_t pending;
int pendingcount;
strcpy(buffer, "None\n ");
printf( "thread id is %d.\n ",getpid());
if(signal(SIGINT,&sighandler)==SIG_ERR)
{
printf( "couldn 't register SIGINT\n ");
}
if(signal(SIGTERM,&sighandler)==SIG_ERR)
{
printf( "couldn 't register SIGTERM\n ");
}
if(signal(SIGCONT,&sighandler)==SIG_ERR)
{
printf( "couldn 't register SIGCONT