From owner-freebsd-hackers Fri Apr 6 22: 4:39 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from cslab.csie.ntu.edu.tw (cslab.csie.ntu.edu.tw [140.112.30.25]) by hub.freebsd.org (Postfix) with ESMTP id BDF0637B424 for ; Fri, 6 Apr 2001 22:04:33 -0700 (PDT) (envelope-from r88074@csie.ntu.edu.tw) Received: from hornets (hornets.csie.ntu.edu.tw [140.112.30.134]) by cslab.csie.ntu.edu.tw (8.9.3/8.9.3) with SMTP id NAA18893 for ; Sat, 7 Apr 2001 13:04:32 +0800 (CST) Message-Id: <200104070504.NAA18893@cslab.csie.ntu.edu.tw> From: "ªL­^¶W" To: "Freebsd-Hackers" Subject: Why is the process killed ?? Date: Sat, 7 Apr 2001 13:04:04 +0800 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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