Signal Handler on a Linux system.

michael.marronel-3com.com
Total Points:
50
Status Points:
0
Green Belt
June 24, 2009 8:11 AM PDT
Rate
 
#2 Reply to #1

I could not compile the secod case even with gcc. Could you please help with compilable test case with gcc and command line.  

That is what my problem is, the structure with sa_sigaction exists in the sigaction.h include file, it also does incorporate the 3 return arguments (instead of just signo), but I cannot get it to compile on our system.  This solution was one I found on the internet after searching for signal handlers on Linux systems.  I tried a plethera of different #define flags to see if I could force it to use the correct version of the sigaction structure with the added arguments, but to no avail.  I cannot get this to work on the Linux system using gcc or icc.  Is there another way to do it using icc?  I have to be able to capture the signal, print the call stack, and re-display the Motif window notifying the operator that a signal was caught so that they can gracefully exit the process and notify a analyst to take a look at it.  The call stack printing is to assist the analyst with what the process was doing when it received a signal.  Everything works with the first solution, except that it prints the "new" call stack containing just the signal handler information.  The only solution I can find to get to the previous stack frame "old" call stack, was the routine #2 solution.  According to the include files on the system, the system should support the second solution, I just can't figure out what I am missing to get it to compile.

Intel Software Network Forums Statistics

8473 users have contributed to 31605 threads and 100654 posts to date.
In the past 24 hours, we have 30 new thread(s) 110 new posts(s), and 160 new user(s).

In the past 3 days, the most popular thread for everyone has been gemm(A,A,A) like possible? The most posts were made to gemm(A,A,A) like possible? The post with the most views is Dear Steve, excuse me for a d

Please welcome our newest member Kevin Johnson