Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2001 13:04:04 +0800
From:      "ªL­^¶W" <r88074@csie.ntu.edu.tw>
To:        "Freebsd-Hackers" <freebsd-hackers@FreeBSD.ORG>
Subject:   Why is the process  killed ??
Message-ID:  <200104070504.NAA18893@cslab.csie.ntu.edu.tw>

next in thread | raw e-mail | index | archive | help
Dear all :

        the user process have the following  code  in the "main.c"

to catch the signal "SIGPROF" and "SIGVTALRM"

but the process is still killed by SIGVTALRM signal

Could anyone explain what is the reason maybe ?

Thanks in advance.

Richard_Lin


***********************************************
void catchalrm (int signo)
{
  printf("\nCATCH SIGNAL: signo=%d\n",signo);
  printf("CATCH RETURN\n");
}

******************main.c**********************
main()
{
..............
..............
    act.sa_handler=catchalrm;
    sigfillset(&(act.sa_mask));
    sigaction(SIGPROF, &act,NULL);
    sigaction(SIGVTALRM,&act,NULL);
    sigaction(SIGALRM,&act,NULL);
...............
...............
}





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104070504.NAA18893>